pub struct Walker<'a, Id> {
    pub id: Id,
    pub schema: &'a SqlSchema,
}
Expand description

A generic reference to a schema item. It holds a reference to the schema so it can offer a convenient API based on the Id type.

Fields§

§id: Id

The identifier.

§schema: &'a SqlSchema

The schema for which the identifier is valid.

Implementations§

source§

impl<'a> Walker<'a, IndexColumnId>

source

pub fn get(self) -> &'a IndexColumn

Get the index column data.

source

pub fn name(self) -> &'a str

The name of the column.

source

pub fn length(self) -> Option<u32>

The length limit of the (text) column. Matters on MySQL only.

source

pub fn sort_order(self) -> Option<SQLSortOrder>

The BTree ordering.

source

pub fn table(self) -> TableWalker<'a>

The table where the column is located.

source

pub fn index(self) -> IndexWalker<'a>

The index of the column.

source

pub fn as_column(self) -> TableColumnWalker<'a>

Convert to a normal column walker, losing the possible index arguments.

source§

impl<'a> Walker<'a, TableColumnId>

source

pub fn coarsen(self) -> ColumnWalker<'a>

Coarsen the walker into a generic column version.

source

pub fn name(self) -> &'a str

The column name.

source

pub fn arity(self) -> ColumnArity

The nullability and arity of the column.

source

pub fn column_has_enum_default_value(self, enum_name: &str, value: &str) -> bool

Returns whether the column has the enum default value of the given enum type.

source

pub fn column_type_is_enum(self, enum_name: &str) -> bool

Returns whether the type of the column matches the provided enum name.

source

pub fn column_type_family(self) -> &'a ColumnTypeFamily

The type family.

source

pub fn column_type_family_as_enum(self) -> Option<EnumWalker<'a>>

Extract an Enum column type family, or None if the family is something else.

source

pub fn default(self) -> Option<TableDefaultValueWalker<'a>>

the default value for the column.

source

pub fn column_type(self) -> &'a ColumnType

The full column type.

source

pub fn column_native_type<T: Any + 'static>(self) -> Option<&'a T>

The column native type.

source

pub fn is_autoincrement(self) -> bool

Is this column an auto-incrementing integer?

source

pub fn is_same_column(self, other: TableColumnWalker<'_>) -> bool

Returns whether two columns are named the same and belong to the same table.

source

pub fn is_part_of_secondary_index(self) -> bool

Is this column indexed by a secondary index??

source

pub fn is_part_of_primary_key(self) -> bool

Is this column a part of the table’s primary key?

source

pub fn is_part_of_foreign_key(self) -> bool

Is this column a part of one of the table’s foreign keys?

source

pub fn is_single_primary_key(self) -> bool

Returns whether this column is the primary key. If it is only part of the primary key, this will return false.

source

pub fn table(self) -> TableWalker<'a>

Traverse to the column’s table.

source§

impl<'a> Walker<'a, ViewColumnId>

source

pub fn coarsen(self) -> ColumnWalker<'a>

Coarsen the walker into a generic column version.

source

pub fn name(self) -> &'a str

The column name.

source

pub fn arity(self) -> ColumnArity

The nullability and arity of the column.

source

pub fn column_has_enum_default_value(self, enum_name: &str, value: &str) -> bool

Returns whether the column has the enum default value of the given enum type.

source

pub fn column_type_is_enum(self, enum_name: &str) -> bool

Returns whether the type of the column matches the provided enum name.

source

pub fn column_type_family(self) -> &'a ColumnTypeFamily

The type family.

source

pub fn column_type_family_as_enum(self) -> Option<EnumWalker<'a>>

Extract an Enum column type family, or None if the family is something else.

source

pub fn default(self) -> Option<ViewDefaultValueWalker<'a>>

the default value for the column.

source

pub fn column_type(self) -> &'a ColumnType

The full column type.

source

pub fn column_native_type<T: Any + 'static>(self) -> Option<&'a T>

The column native type.

source

pub fn is_autoincrement(self) -> bool

Is this column an auto-incrementing integer?

source

pub fn is_same_column(self, other: ViewColumnWalker<'_>) -> bool

Returns whether two columns are named the same and belong to the same table.

source

pub fn view(self) -> ViewWalker<'a>

Traverse to the column’s table.

source§

impl<'a> Walker<'a, Either<TableColumnId, ViewColumnId>>

source

pub fn refine(self) -> Either<TableColumnWalker<'a>, ViewColumnWalker<'a>>

Refines the walker to either as a table or as a view column.

source

pub fn arity(self) -> ColumnArity

The nullability and arity of the column.

source

pub fn column_has_enum_default_value(self, enum_name: &str, value: &str) -> bool

Returns whether the column has the enum default value of the given enum type.

source

pub fn column_type_is_enum(self, enum_name: &str) -> bool

Returns whether the type of the column matches the provided enum name.

source

pub fn column_type_family(self) -> &'a ColumnTypeFamily

The type family.

source

pub fn column_type_family_as_enum(self) -> Option<EnumWalker<'a>>

Extract an Enum column type family, or None if the family is something else.

source

pub fn name(self) -> &'a str

The column name.

source

pub fn column_type(self) -> &'a ColumnType

the full column type.

source

pub fn column_native_type<T: Any + 'static>(self) -> Option<&'a T>

the column native type.

source

pub fn is_autoincrement(self) -> bool

is this column an auto-incrementing integer?

source

pub fn default(self) -> Option<DefaultValueWalker<'a>>

the default value for the column.

source

pub fn is_same_column(self, other: ColumnWalker<'_>) -> bool

returns whether two columns are named the same and belong to the same table.

source

pub fn is_in_view(self) -> bool

True if the column is defined in a view.

source

pub fn description(self) -> Option<&'a str>

Description (comment) of the column.

source§

impl<'a> Walker<'a, TableDefaultValueId>

source

pub fn coarsen(self) -> DefaultValueWalker<'a>

Coarsen the walker into a generic column default version.

source

pub fn column(self) -> TableColumnWalker<'a>

The column where the default value is located.

source

pub fn as_value(self) -> Option<&'a PrismaValue>

Return a value if a constant.

source

pub fn as_sequence(self) -> Option<&'a str>

If the value is a squence, return it

source

pub fn is_value(&self) -> bool

True if a constant value

source

pub fn is_now(&self) -> bool

True if now()

source

pub fn is_sequence(&self) -> bool

True if referencing a sequence

source

pub fn is_db_generated(&self) -> bool

True if value generation is handled in the database

source

pub fn kind(self) -> &'a DefaultKind

The value kind enumerator

source

pub fn constraint_name(self) -> Option<&'a str>

The name of the default value constraint.

source

pub fn inner(self) -> &'a DefaultValue

The actual value struct

source§

impl<'a> Walker<'a, ViewDefaultValueId>

source

pub fn coarsen(self) -> DefaultValueWalker<'a>

Coarsen the walker into a generic column default version.

source

pub fn column(self) -> ViewColumnWalker<'a>

The column where the default value is located.

source

pub fn as_value(self) -> Option<&'a PrismaValue>

Return a value if a constant.

source

pub fn as_sequence(self) -> Option<&'a str>

If the value is a squence, return it

source

pub fn is_value(&self) -> bool

True if a constant value

source

pub fn is_now(&self) -> bool

True if now()

source

pub fn is_sequence(&self) -> bool

True if referencing a sequence

source

pub fn is_db_generated(&self) -> bool

True if value generation is handled in the database

source

pub fn kind(self) -> &'a DefaultKind

The value kind enumerator

source

pub fn constraint_name(self) -> Option<&'a str>

The name of the default value constraint.

source§

impl<'a> Walker<'a, Either<TableDefaultValueId, ViewDefaultValueId>>

source

pub fn refine( self ) -> Either<TableDefaultValueWalker<'a>, ViewDefaultValueWalker<'a>>

Refines the walker to either as a table or as a view column default.

source

pub fn as_value(self) -> Option<&'a PrismaValue>

Return a value if a constant.

source

pub fn as_sequence(self) -> Option<&'a str>

If the value is a squence, return it

source

pub fn is_value(&self) -> bool

True if a constant value

source

pub fn is_now(&self) -> bool

True if now()

source

pub fn is_sequence(&self) -> bool

True if referencing a sequence

source

pub fn is_db_generated(&self) -> bool

True if value generation is handled in the database

source

pub fn kind(self) -> &'a DefaultKind

The value kind enumerator

source

pub fn constraint_name(self) -> Option<&'a str>

The name of the default value constraint.

source

pub fn value(self) -> &'a DefaultValue

The default value data

source§

impl<'a> Walker<'a, EnumId>

source

pub fn namespace(self) -> Option<&'a str>

The namespace the enum belongs to, if defined.

source

pub fn name(self) -> &'a str

The name of the enum. This is a made up name on MySQL.

source

pub fn variants(self) -> impl ExactSizeIterator<Item = EnumVariantWalker<'a>>

The variants of the enum.

source

pub fn values(self) -> impl ExactSizeIterator<Item = &'a str>

The names of the variants of the enum.

source

pub fn description(self) -> Option<&'a str>

Description (comment) of the enum.

source§

impl<'a> Walker<'a, EnumVariantId>

source

pub fn enum(self) -> EnumWalker<'a>

The parent enum.

source

pub fn name(self) -> &'a str

The variant itself.

source§

impl<'schema> Walker<'schema, ForeignKeyId>

source

pub fn constrained_columns( self ) -> impl ExactSizeIterator<Item = TableColumnWalker<'schema>>

The foreign key columns on the referencing table.

source

pub fn constraint_name(self) -> Option<&'schema str>

The name of the foreign key constraint.

source

pub fn on_delete_action(self) -> ForeignKeyAction

The ON DELETE behaviour of the foreign key.

source

pub fn on_update_action(self) -> ForeignKeyAction

The ON UPDATE behaviour of the foreign key.

source

pub fn referenced_columns( self ) -> impl ExactSizeIterator<Item = TableColumnWalker<'schema>>

The columns referenced by the foreign key on the referenced table.

source

pub fn referenced_table_name(self) -> &'schema str

The table the foreign key “points to”.

source

pub fn referenced_table(self) -> TableWalker<'schema>

The table the foreign key “points to”.

source

pub fn table(self) -> TableWalker<'schema>

Traverse to the referencing/constrained table.

source

pub fn is_self_relation(self) -> bool

True if relation is back to the same table.

source§

impl<'a> Walker<'a, IndexId>

source

pub fn column_names(self) -> impl ExactSizeIterator<Item = &'a str>

The names of the indexed columns.

source

pub fn columns(self) -> impl ExactSizeIterator<Item = IndexColumnWalker<'a>>

Traverse the indexed columns.

source

pub fn contains_column(self, column_id: TableColumnId) -> bool

True if index contains the given column.

source

pub fn index_type(self) -> IndexType

The IndexType

source

pub fn is_primary_key(self) -> bool

Is this index the primary key of the table?

source

pub fn is_unique(self) -> bool

Is this index a unique constraint? NB: This will return false for the primary key.

source

pub fn name(self) -> &'a str

The name of the index.

source

pub fn table(self) -> TableWalker<'a>

Traverse to the table of the index.

source§

impl<'a> Walker<'a, NamespaceId>

source

pub fn name(self) -> &'a str

The namespace name.

source§

impl<'a> Walker<'a, TableId>

source

pub fn column(self, column_name: &str) -> Option<TableColumnWalker<'a>>

Get a column in the table, by name.

source

pub fn columns(self) -> impl ExactSizeIterator<Item = TableColumnWalker<'a>>

Traverse the table’s columns.

source

pub fn foreign_key_count(self) -> usize

The number of foreign key constraints on the table.

source

pub fn indexes(self) -> impl ExactSizeIterator<Item = IndexWalker<'a>>

Traverse the indexes on the table.

source

pub fn foreign_keys(self) -> impl ExactSizeIterator<Item = ForeignKeyWalker<'a>>

Traverse the foreign keys on the table.

source

pub fn referencing_foreign_keys( self ) -> impl Iterator<Item = ForeignKeyWalker<'a>>

Traverse foreign keys from other tables, referencing current table.

source

pub fn name(self) -> &'a str

The table name.

source

pub fn foreign_key_for_column( self, column: TableColumnId ) -> Option<ForeignKeyWalker<'a>>

Try to traverse a foreign key for a single column.

source

pub fn namespace(self) -> Option<&'a str>

The namespace the table belongs to, if defined.

source

pub fn namespace_id(self) -> NamespaceId

The namespace the table belongs to.

source

pub fn primary_key(self) -> Option<IndexWalker<'a>>

Traverse to the primary key of the table.

source

pub fn primary_key_columns( self ) -> Option<impl ExactSizeIterator<Item = IndexColumnWalker<'a>>>

The columns that are part of the primary keys.

source

pub fn primary_key_columns_count(self) -> usize

How many columns are in the primary key? Returns 0 in the absence of a pk.

source

pub fn is_partition(self) -> bool

Is the table a partition table?

source

pub fn has_subclass(self) -> bool

Does the table have subclasses?

source

pub fn has_row_level_security(self) -> bool

Does the table have row level security enabled?

source

pub fn has_check_constraints(self) -> bool

Does the table have check constraints?

source

pub fn check_constraints(self) -> impl ExactSizeIterator<Item = &'a str>

The check constraint names for the table.

source

pub fn description(self) -> Option<&'a str>

Description (comment) of the table.

source§

impl<'a> Walker<'a, UdtId>

source

pub fn name(self) -> &'a str

The name of the type

source

pub fn definition(self) -> Option<&'a str>

The SQL definition of the type

source

pub fn namespace(self) -> Option<&'a str>

The namespace of the type

source§

impl<'a> Walker<'a, ViewId>

source

pub fn name(self) -> &'a str

The name of the view

source

pub fn definition(self) -> Option<&'a str>

The SQL definition of the view

source

pub fn namespace(self) -> Option<&'a str>

The namespace of the view

source

pub fn columns(self) -> impl ExactSizeIterator<Item = ViewColumnWalker<'a>>

Traverse the view’s columns.

source

pub fn description(self) -> Option<&'a str>

Description (comment) of the view.

source§

impl<'a, Id> Walker<'a, Id>

source

pub fn walk<I>(self, other_id: I) -> Walker<'a, I>

Jump to the item identified by other_id.

Trait Implementations§

source§

impl<'a, Id: Clone> Clone for Walker<'a, Id>

source§

fn clone(&self) -> Walker<'a, Id>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<I: Debug> Debug for Walker<'_, I>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a, Id: Copy> Copy for Walker<'a, Id>

Auto Trait Implementations§

§

impl<'a, Id> !RefUnwindSafe for Walker<'a, Id>

§

impl<'a, Id> Send for Walker<'a, Id>where Id: Send,

§

impl<'a, Id> Sync for Walker<'a, Id>where Id: Sync,

§

impl<'a, Id> Unpin for Walker<'a, Id>where Id: Unpin,

§

impl<'a, Id> !UnwindSafe for Walker<'a, Id>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Conv for T

source§

fn conv<T>(self) -> Twhere Self: Into<T>,

Converts self into T using Into<T>. Read more
source§

impl<Choices> CoproductSubsetter<CNil, HNil> for Choices

§

type Remainder = Choices

source§

fn subset( self ) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>

Extract a subset of the possible types in a coproduct (or get the remaining possibilities) Read more
source§

impl<T> FmtForward for T

source§

fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
source§

fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
source§

fn fmt_octal(self) -> FmtOctal<Self>where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
source§

fn fmt_pointer(self) -> FmtPointer<Self>where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
source§

fn fmt_list(self) -> FmtList<Self>where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U, I> LiftInto<U, I> for Twhere U: LiftFrom<T, I>,

source§

fn lift_into(self) -> U

Performs the indexed conversion.
source§

impl<T> Pipe for Twhere T: ?Sized,

source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> Rwhere Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> Rwhere Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> Rwhere Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
source§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> Rwhere Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
source§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> Rwhere Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R ) -> Rwhere Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<Source> Sculptor<HNil, HNil> for Source

§

type Remainder = Source

source§

fn sculpt(self) -> (HNil, <Source as Sculptor<HNil, HNil>>::Remainder)

Consumes the current HList and returns an HList with the requested shape. Read more
source§

impl<T> Tap for T

source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Selfwhere Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Selfwhere Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Selfwhere Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Selfwhere Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Selfwhere Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
source§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
source§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Selfwhere Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
source§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
source§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Selfwhere Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Selfwhere Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> TryConv for T

source§

fn try_conv<T>(self) -> Result<T, Self::Error>where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more