Struct table

Source
pub struct table;
Expand description

The actual table struct

This is the type which provides the base methods of the query builder, such as .select and .filter.

Implementations§

Source§

impl table

Source

pub fn star(&self) -> star

Represents table_name.*, which is sometimes necessary for efficient count queries. It cannot be used in place of all_columns

Trait Implementations§

Source§

impl AppearsInFromClause<table> for ()

Source§

type Count = Never

How many times does Self appear in QS?
Source§

impl AppearsInFromClause<table> for table

Source§

type Count = Once

How many times does Self appear in QS?
Source§

impl AppearsInFromClause<table> for table

Source§

type Count = Never

How many times does Self appear in QS?
Source§

impl AppearsInFromClause<table> for table

Source§

type Count = Never

How many times does Self appear in QS?
Source§

impl AppearsInFromClause<table> for table

Source§

type Count = Never

How many times does Self appear in QS?
Source§

impl AppearsInFromClause<table> for table

Source§

type Count = Never

How many times does Self appear in QS?
Source§

impl AppearsInFromClause<table> for table

Source§

type Count = Never

How many times does Self appear in QS?
Source§

impl AppearsInFromClause<table> for table

Source§

type Count = Never

How many times does Self appear in QS?
Source§

impl AsQuery for table

Source§

type SqlType = (Text, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<Bool>, Nullable<Bool>, Nullable<Bool>, Nullable<Jsonb>, Nullable<Text>, Nullable<Jsonb>, Nullable<Integer>, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<Jsonb>, Nullable<Text>, Nullable<Jsonb>, Nullable<Bool>, Nullable<Bool>, Nullable<Bool>, Nullable<Bool>, Nullable<Bool>, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<BigInt>, Nullable<BigInt>, Nullable<Text>, Nullable<Jsonb>, Nullable<Jsonb>, Nullable<Bool>)

The SQL type of Self::Query
Source§

type Query = SelectStatement<table>

What kind of query does this type represent?
Source§

fn as_query(self) -> Self::Query

Converts a type which semantically represents a SQL query into the actual query being executed. See the trait level docs for more.
Source§

impl Clone for table

Source§

fn clone(&self) -> table

Returns a duplicate 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 Debug for table

Source§

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

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

impl HasTable for table

Source§

type Table = table

The table this type is associated with.
Source§

fn table() -> Self::Table

Returns the table this type is associated with.
Source§

impl<'a, T> Insertable<T> for &'a table
where table: Insertable<T>,

Source§

type Values = <table as Insertable<T>>::Values

The VALUES clause to insert these records Read more
Source§

fn values(self) -> Self::Values

Construct Self::Values Read more
Source§

fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
where Self: Sized,

Insert self into a given table. Read more
Source§

impl<T> Insertable<T> for table
where <table as AsQuery>::Query: Insertable<T>,

Source§

type Values = <<table as AsQuery>::Query as Insertable<T>>::Values

The VALUES clause to insert these records Read more
Source§

fn values(self) -> Self::Values

Construct Self::Values Read more
Source§

fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
where Self: Sized,

Insert self into a given table. Read more
Source§

impl<'insert> Insertable<table> for &'insert File

Source§

type Values = <(Option<Eq<id, <&'insert String as AsExpression<<id as Expression>::SqlType>>::Expression>>, Option<Eq<name, <&'insert String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<mime_type, <&'insert String as AsExpression<<mime_type as Expression>::SqlType>>::Expression>>, Option<Eq<description, <&'insert String as AsExpression<<description as Expression>::SqlType>>::Expression>>, Option<Eq<trashed, <&'insert bool as AsExpression<<trashed as Expression>::SqlType>>::Expression>>, Option<Eq<starred, <&'insert bool as AsExpression<<starred as Expression>::SqlType>>::Expression>>, Option<Eq<explicitly_trashed, <&'insert bool as AsExpression<<explicitly_trashed as Expression>::SqlType>>::Expression>>, Option<Eq<trashing_user, <&'insert Value as AsExpression<<trashing_user as Expression>::SqlType>>::Expression>>, Option<Eq<trashed_time, <&'insert String as AsExpression<<trashed_time as Expression>::SqlType>>::Expression>>, Option<Eq<properties, <&'insert Value as AsExpression<<properties as Expression>::SqlType>>::Expression>>, Option<Eq<web_content_link, <&'insert String as AsExpression<<web_content_link as Expression>::SqlType>>::Expression>>, Option<Eq<web_view_link, <&'insert String as AsExpression<<web_view_link as Expression>::SqlType>>::Expression>>, Option<Eq<created_time, <&'insert String as AsExpression<<created_time as Expression>::SqlType>>::Expression>>, Option<Eq<modified_time, <&'insert String as AsExpression<<modified_time as Expression>::SqlType>>::Expression>>, Option<Eq<owners, <&'insert Value as AsExpression<<owners as Expression>::SqlType>>::Expression>>, Option<Eq<drive_id, <&'insert String as AsExpression<<drive_id as Expression>::SqlType>>::Expression>>, Option<Eq<last_modifying_user, <&'insert Value as AsExpression<<last_modifying_user as Expression>::SqlType>>::Expression>>, Option<Eq<shared, <&'insert bool as AsExpression<<shared as Expression>::SqlType>>::Expression>>, Option<Eq<viewers_can_copy_content, <&'insert bool as AsExpression<<viewers_can_copy_content as Expression>::SqlType>>::Expression>>, Option<Eq<copy_requires_writer_permission, <&'insert bool as AsExpression<<copy_requires_writer_permission as Expression>::SqlType>>::Expression>>, Option<Eq<writers_can_share, <&'insert bool as AsExpression<<writers_can_share as Expression>::SqlType>>::Expression>>, Option<Eq<has_augmented_permissions, <&'insert bool as AsExpression<<has_augmented_permissions as Expression>::SqlType>>::Expression>>, Option<Eq<folder_color_rgb, <&'insert String as AsExpression<<folder_color_rgb as Expression>::SqlType>>::Expression>>, Option<Eq<original_filename, <&'insert String as AsExpression<<original_filename as Expression>::SqlType>>::Expression>>, Option<Eq<full_file_extension, <&'insert String as AsExpression<<full_file_extension as Expression>::SqlType>>::Expression>>, Option<Eq<file_extension, <&'insert String as AsExpression<<file_extension as Expression>::SqlType>>::Expression>>, Option<Eq<md5_checksum, <&'insert String as AsExpression<<md5_checksum as Expression>::SqlType>>::Expression>>, Option<Eq<head_revision_id, <&'insert String as AsExpression<<head_revision_id as Expression>::SqlType>>::Expression>>, Option<Eq<image_media_metadata, <&'insert Value as AsExpression<<image_media_metadata as Expression>::SqlType>>::Expression>>, Option<Eq<video_media_metadata, <&'insert Value as AsExpression<<video_media_metadata as Expression>::SqlType>>::Expression>>, Option<Eq<is_app_authorized, <&'insert bool as AsExpression<<is_app_authorized as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more
Source§

fn values(self) -> Self::Values

Construct Self::Values Read more
Source§

fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
where Self: Sized,

Insert self into a given table. Read more
Source§

impl<'insert> Insertable<table> for File

Source§

type Values = <(Option<Eq<id, <String as AsExpression<<id as Expression>::SqlType>>::Expression>>, Option<Eq<name, <String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<mime_type, <String as AsExpression<<mime_type as Expression>::SqlType>>::Expression>>, Option<Eq<description, <String as AsExpression<<description as Expression>::SqlType>>::Expression>>, Option<Eq<trashed, <bool as AsExpression<<trashed as Expression>::SqlType>>::Expression>>, Option<Eq<starred, <bool as AsExpression<<starred as Expression>::SqlType>>::Expression>>, Option<Eq<explicitly_trashed, <bool as AsExpression<<explicitly_trashed as Expression>::SqlType>>::Expression>>, Option<Eq<trashing_user, <Value as AsExpression<<trashing_user as Expression>::SqlType>>::Expression>>, Option<Eq<trashed_time, <String as AsExpression<<trashed_time as Expression>::SqlType>>::Expression>>, Option<Eq<properties, <Value as AsExpression<<properties as Expression>::SqlType>>::Expression>>, Option<Eq<web_content_link, <String as AsExpression<<web_content_link as Expression>::SqlType>>::Expression>>, Option<Eq<web_view_link, <String as AsExpression<<web_view_link as Expression>::SqlType>>::Expression>>, Option<Eq<created_time, <String as AsExpression<<created_time as Expression>::SqlType>>::Expression>>, Option<Eq<modified_time, <String as AsExpression<<modified_time as Expression>::SqlType>>::Expression>>, Option<Eq<owners, <Value as AsExpression<<owners as Expression>::SqlType>>::Expression>>, Option<Eq<drive_id, <String as AsExpression<<drive_id as Expression>::SqlType>>::Expression>>, Option<Eq<last_modifying_user, <Value as AsExpression<<last_modifying_user as Expression>::SqlType>>::Expression>>, Option<Eq<shared, <bool as AsExpression<<shared as Expression>::SqlType>>::Expression>>, Option<Eq<viewers_can_copy_content, <bool as AsExpression<<viewers_can_copy_content as Expression>::SqlType>>::Expression>>, Option<Eq<copy_requires_writer_permission, <bool as AsExpression<<copy_requires_writer_permission as Expression>::SqlType>>::Expression>>, Option<Eq<writers_can_share, <bool as AsExpression<<writers_can_share as Expression>::SqlType>>::Expression>>, Option<Eq<has_augmented_permissions, <bool as AsExpression<<has_augmented_permissions as Expression>::SqlType>>::Expression>>, Option<Eq<folder_color_rgb, <String as AsExpression<<folder_color_rgb as Expression>::SqlType>>::Expression>>, Option<Eq<original_filename, <String as AsExpression<<original_filename as Expression>::SqlType>>::Expression>>, Option<Eq<full_file_extension, <String as AsExpression<<full_file_extension as Expression>::SqlType>>::Expression>>, Option<Eq<file_extension, <String as AsExpression<<file_extension as Expression>::SqlType>>::Expression>>, Option<Eq<md5_checksum, <String as AsExpression<<md5_checksum as Expression>::SqlType>>::Expression>>, Option<Eq<head_revision_id, <String as AsExpression<<head_revision_id as Expression>::SqlType>>::Expression>>, Option<Eq<image_media_metadata, <Value as AsExpression<<image_media_metadata as Expression>::SqlType>>::Expression>>, Option<Eq<video_media_metadata, <Value as AsExpression<<video_media_metadata as Expression>::SqlType>>::Expression>>, Option<Eq<is_app_authorized, <bool as AsExpression<<is_app_authorized as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more
Source§

fn values(self) -> Self::Values

Construct Self::Values Read more
Source§

fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
where Self: Sized,

Insert self into a given table. Read more
Source§

impl IntoUpdateTarget for table

Source§

type WhereClause = <<table as AsQuery>::Query as IntoUpdateTarget>::WhereClause

What is the WHERE clause of this target?
Source§

fn into_update_target(self) -> UpdateTarget<Self::Table, Self::WhereClause>

Decomposes self into the table and where clause.
Source§

impl QueryId for table

Source§

const HAS_STATIC_QUERY_ID: bool = true

Can the SQL generated by Self be uniquely identified by its type? Read more
Source§

type QueryId = table

A type which uniquely represents Self in a SQL query. Read more
Source§

fn query_id() -> Option<TypeId>

Returns the type id of Self::QueryId if Self::HAS_STATIC_QUERY_ID. Returns None otherwise. Read more
Source§

impl QuerySource for table

Source§

type FromClause = Identifier<'static>

The type returned by from_clause
Source§

type DefaultSelection = <table as Table>::AllColumns

The type returned by default_selection
Source§

fn from_clause(&self) -> Self::FromClause

The actual FROM clause of this type. This is typically only called in QueryFragment implementations.
Source§

fn default_selection(&self) -> Self::DefaultSelection

The default select clause of this type, which should be used if no select clause was explicitly specified. This should always be a tuple of all the desired columns, not star
Source§

impl Table for table

Source§

impl AppearsOnTable<table> for star

Source§

impl Copy for table

Source§

impl<'a, QS, ST, DB> JoinTo<BoxedSelectStatement<'a, QS, ST, DB>> for table
where BoxedSelectStatement<'a, QS, ST, DB>: JoinTo<table>,

Source§

impl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for table
where Join<Left, Right, Kind>: JoinTo<table>,

Source§

impl JoinTo<table> for table

Source§

impl JoinTo<table> for table

Source§

impl JoinTo<table> for table

Source§

impl JoinTo<table> for table

Source§

impl JoinTo<table> for table

Source§

impl JoinTo<table> for table

Source§

impl SelectableExpression<table> for copy_requires_writer_permission

Source§

impl SelectableExpression<table> for created_time

Source§

impl SelectableExpression<table> for description

Source§

impl SelectableExpression<table> for drive_id

Source§

impl SelectableExpression<table> for explicitly_trashed

Source§

impl SelectableExpression<table> for file_extension

Source§

impl SelectableExpression<table> for folder_color_rgb

Source§

impl SelectableExpression<table> for full_file_extension

Source§

impl SelectableExpression<table> for has_augmented_permissions

Source§

impl SelectableExpression<table> for head_revision_id

Source§

impl SelectableExpression<table> for id

Source§

impl SelectableExpression<table> for image_media_metadata

Source§

impl SelectableExpression<table> for is_app_authorized

Source§

impl SelectableExpression<table> for last_modifying_user

Source§

impl SelectableExpression<table> for md5_checksum

Source§

impl SelectableExpression<table> for mime_type

Source§

impl SelectableExpression<table> for modified_time

Source§

impl SelectableExpression<table> for name

Source§

impl SelectableExpression<table> for original_filename

Source§

impl SelectableExpression<table> for owners

Source§

impl SelectableExpression<table> for properties

Source§

impl SelectableExpression<table> for quota_bytes_used

Source§

impl SelectableExpression<table> for shared

Source§

impl SelectableExpression<table> for size

Source§

impl SelectableExpression<table> for star

Source§

impl SelectableExpression<table> for starred

Source§

impl SelectableExpression<table> for trashed

Source§

impl SelectableExpression<table> for trashed_time

Source§

impl SelectableExpression<table> for trashing_user

Source§

impl SelectableExpression<table> for version

Source§

impl SelectableExpression<table> for video_media_metadata

Source§

impl SelectableExpression<table> for viewers_can_copy_content

Source§

impl SelectableExpression<table> for writers_can_share

Source§

impl<'insert> UndecoratedInsertRecord<table> for File

Auto Trait Implementations§

§

impl Freeze for table

§

impl RefUnwindSafe for table

§

impl Send for table

§

impl Sync for table

§

impl Unpin for table

§

impl UnwindSafe for table

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DistinctDsl for T
where T: Table, <T as AsQuery>::Query: DistinctDsl,

Source§

type Output = <<T as AsQuery>::Query as DistinctDsl>::Output

The type returned by .distinct
Source§

fn distinct(self) -> <T as DistinctDsl>::Output

See the trait documentation.
Source§

impl<T> ForUpdateDsl for T
where T: LockingDsl<ForUpdate>,

Source§

type Output = <T as LockingDsl<ForUpdate>>::Output

👎Deprecated since 1.3.0: use LockingDsl<ForUpdate> instead
The type returned by for_update. See dsl::ForUpdate for convenient access to this type.
Source§

fn for_update(self) -> <T as ForUpdateDsl>::Output

👎Deprecated since 1.3.0: use LockingDsl<ForUpdate> instead
See the trait level documentation
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where 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> IntoSql for T

Source§

fn into_sql<T>(self) -> Self::Expression
where Self: Sized + AsExpression<T>,

Convert self to an expression for Diesel’s query builder. Read more
Source§

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
where &'a Self: AsExpression<T>,

Convert &self to an expression for Diesel’s query builder. Read more
Source§

impl<T> JoinOnDsl for T
where T: QuerySource,

Source§

fn on<On>(self, on: On) -> OnClauseWrapper<Self, On>

See the trait documentation.
Source§

impl<Lhs, Rhs, On> JoinTo<OnClauseWrapper<Rhs, On>> for Lhs
where Lhs: Table,

Source§

type FromClause = Rhs

Source§

type OnClause = On

Source§

fn join_target( rhs: OnClauseWrapper<Rhs, On>, ) -> (<Lhs as JoinTo<OnClauseWrapper<Rhs, On>>>::FromClause, <Lhs as JoinTo<OnClauseWrapper<Rhs, On>>>::OnClause)

Source§

impl<T> LimitDsl for T
where T: Table, <T as AsQuery>::Query: LimitDsl,

Source§

type Output = <<T as AsQuery>::Query as LimitDsl>::Output

The type returned by .limit
Source§

fn limit(self, limit: i64) -> <T as LimitDsl>::Output

See the trait documentation
Source§

impl<T> OffsetDsl for T
where T: Table, <T as AsQuery>::Query: OffsetDsl,

Source§

type Output = <<T as AsQuery>::Query as OffsetDsl>::Output

The type returned by .offset.
Source§

fn offset(self, offset: i64) -> <T as OffsetDsl>::Output

See the trait documentation
Source§

impl<T> QueryDsl for T
where T: Table,

Source§

fn distinct(self) -> Self::Output
where Self: DistinctDsl,

Adds the DISTINCT keyword to a query. Read more
Source§

fn distinct_on<Expr>(self, expr: Expr) -> Self::Output
where Self: DistinctOnDsl<Expr>,

Adds the DISTINCT ON clause to a query. Read more
Source§

fn select<Selection>(self, selection: Selection) -> Self::Output
where Selection: Expression, Self: SelectDsl<Selection>,

Adds a SELECT clause to the query. Read more
Source§

fn count(self) -> Self::Output
where Self: SelectDsl<CountStar>,

Get the count of a query. This is equivalent to .select(count_star()) Read more
Source§

fn inner_join<Rhs>(self, rhs: Rhs) -> Self::Output
where Self: JoinWithImplicitOnClause<Rhs, Inner>,

Join two tables using a SQL INNER JOIN. Read more
Source§

fn left_outer_join<Rhs>(self, rhs: Rhs) -> Self::Output
where Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,

Join two tables using a SQL LEFT OUTER JOIN. Read more
Source§

fn left_join<Rhs>(self, rhs: Rhs) -> Self::Output
where Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,

Alias for left_outer_join.
Source§

fn filter<Predicate>(self, predicate: Predicate) -> Self::Output
where Self: FilterDsl<Predicate>,

Adds to the WHERE clause of a query. Read more
Source§

fn or_filter<Predicate>(self, predicate: Predicate) -> Self::Output
where Self: OrFilterDsl<Predicate>,

Adds to the WHERE clause of a query using OR Read more
Source§

fn find<PK>(self, id: PK) -> Self::Output
where Self: FindDsl<PK>,

Attempts to find a single record from the given table by primary key. Read more
Source§

fn order<Expr>(self, expr: Expr) -> Self::Output
where Expr: Expression, Self: OrderDsl<Expr>,

Sets the order clause of a query. Read more
Source§

fn order_by<Expr>(self, expr: Expr) -> Self::Output
where Expr: Expression, Self: OrderDsl<Expr>,

Alias for order
Source§

fn then_order_by<Order>(self, order: Order) -> Self::Output
where Self: ThenOrderDsl<Order>,

Appends to the ORDER BY clause of this SQL query. Read more
Source§

fn limit(self, limit: i64) -> Self::Output
where Self: LimitDsl,

Sets the limit clause of the query. Read more
Source§

fn offset(self, offset: i64) -> Self::Output
where Self: OffsetDsl,

Sets the offset clause of the query. Read more
Source§

fn for_update(self) -> Self::Output
where Self: ForUpdateDsl,

Adds FOR UPDATE to the end of the select statement. Read more
Source§

fn for_no_key_update(self) -> Self::Output
where Self: LockingDsl<ForNoKeyUpdate>,

Adds FOR NO KEY UPDATE to the end of the select statement. Read more
Source§

fn for_share(self) -> Self::Output
where Self: LockingDsl<ForShare>,

Adds FOR SHARE to the end of the select statement. Read more
Source§

fn for_key_share(self) -> Self::Output
where Self: LockingDsl<ForKeyShare>,

Adds FOR KEY SHARE to the end of the select statement. Read more
Source§

fn skip_locked(self) -> Self::Output
where Self: ModifyLockDsl<SkipLocked>,

Adds SKIP LOCKED to the end of a FOR UPDATE clause. Read more
Source§

fn no_wait(self) -> Self::Output
where Self: ModifyLockDsl<NoWait>,

Adds NOWAIT to the end of a FOR UPDATE clause. Read more
Source§

fn into_boxed<'a, DB>(self) -> Self::Output
where DB: Backend, Self: BoxedDsl<'a, DB>,

Boxes the pieces of a query into a single type. Read more
Source§

fn single_value(self) -> Self::Output
where Self: SingleValueDsl,

Wraps this select statement in parenthesis, allowing it to be used as an expression. Read more
Source§

fn nullable(self) -> Self::Output
where Self: SelectNullableDsl,

Coerce the SQL type of the select clause to it’s nullable equivalent. Read more
Source§

impl<T, Conn> RunQueryDsl<Conn> for T
where T: Table,

Source§

fn execute(self, conn: &Conn) -> Result<usize, Error>
where Conn: Connection, Self: ExecuteDsl<Conn>,

Executes the given command, returning the number of rows affected. Read more
Source§

fn load<U>(self, conn: &Conn) -> Result<Vec<U>, Error>
where Self: LoadQuery<Conn, U>,

Executes the given query, returning a Vec with the returned rows. Read more
Source§

fn get_result<U>(self, conn: &Conn) -> Result<U, Error>
where Self: LoadQuery<Conn, U>,

Runs the command, and returns the affected row. Read more
Source§

fn get_results<U>(self, conn: &Conn) -> Result<Vec<U>, Error>
where Self: LoadQuery<Conn, U>,

Runs the command, returning an Vec with the affected rows. Read more
Source§

fn first<U>(self, conn: &Conn) -> Result<U, Error>
where Self: LimitDsl, Self::Output: LoadQuery<Conn, U>,

Attempts to load a single record. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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.