Node

Enum Node 

Source
pub enum Node {
Show 228 variants Alias(Alias), RangeVar(RangeVar), TableFunc(Box<TableFunc>), Expr(Expr), Var(Box<Var>), Param(Box<Param>), Aggref(Box<Aggref>), GroupingFunc(Box<GroupingFunc>), WindowFunc(Box<WindowFunc>), SubscriptingRef(Box<SubscriptingRef>), FuncExpr(Box<FuncExpr>), NamedArgExpr(Box<NamedArgExpr>), OpExpr(Box<OpExpr>), DistinctExpr(Box<DistinctExpr>), NullIfExpr(Box<NullIfExpr>), ScalarArrayOpExpr(Box<ScalarArrayOpExpr>), BoolExpr(Box<BoolExpr>), SubLink(Box<SubLink>), SubPlan(Box<SubPlan>), AlternativeSubPlan(Box<AlternativeSubPlan>), FieldSelect(Box<FieldSelect>), FieldStore(Box<FieldStore>), RelabelType(Box<RelabelType>), CoerceViaIo(Box<CoerceViaIo>), ArrayCoerceExpr(Box<ArrayCoerceExpr>), ConvertRowtypeExpr(Box<ConvertRowtypeExpr>), CollateExpr(Box<CollateExpr>), CaseExpr(Box<CaseExpr>), CaseWhen(Box<CaseWhen>), CaseTestExpr(Box<CaseTestExpr>), ArrayExpr(Box<ArrayExpr>), RowExpr(Box<RowExpr>), RowCompareExpr(Box<RowCompareExpr>), CoalesceExpr(Box<CoalesceExpr>), MinMaxExpr(Box<MinMaxExpr>), SqlvalueFunction(Box<SqlValueFunction>), XmlExpr(Box<XmlExpr>), NullTest(Box<NullTest>), BooleanTest(Box<BooleanTest>), CoerceToDomain(Box<CoerceToDomain>), CoerceToDomainValue(Box<CoerceToDomainValue>), SetToDefault(Box<SetToDefault>), CurrentOfExpr(Box<CurrentOfExpr>), NextValueExpr(Box<NextValueExpr>), InferenceElem(Box<InferenceElem>), TargetEntry(Box<TargetEntry>), RangeTblRef(RangeTblRef), JoinExpr(Box<JoinExpr>), FromExpr(Box<FromExpr>), OnConflictExpr(Box<OnConflictExpr>), IntoClause(Box<IntoClause>), RawStmt(Box<RawStmt>), Query(Box<Query>), InsertStmt(Box<InsertStmt>), DeleteStmt(Box<DeleteStmt>), UpdateStmt(Box<UpdateStmt>), SelectStmt(Box<SelectStmt>), AlterTableStmt(AlterTableStmt), AlterTableCmd(Box<AlterTableCmd>), AlterDomainStmt(Box<AlterDomainStmt>), SetOperationStmt(Box<SetOperationStmt>), GrantStmt(GrantStmt), GrantRoleStmt(GrantRoleStmt), AlterDefaultPrivilegesStmt(AlterDefaultPrivilegesStmt), ClosePortalStmt(ClosePortalStmt), ClusterStmt(ClusterStmt), CopyStmt(Box<CopyStmt>), CreateStmt(CreateStmt), DefineStmt(DefineStmt), DropStmt(DropStmt), TruncateStmt(TruncateStmt), CommentStmt(Box<CommentStmt>), FetchStmt(FetchStmt), IndexStmt(Box<IndexStmt>), CreateFunctionStmt(CreateFunctionStmt), AlterFunctionStmt(AlterFunctionStmt), DoStmt(DoStmt), RenameStmt(Box<RenameStmt>), RuleStmt(Box<RuleStmt>), NotifyStmt(NotifyStmt), ListenStmt(ListenStmt), UnlistenStmt(UnlistenStmt), TransactionStmt(TransactionStmt), ViewStmt(Box<ViewStmt>), LoadStmt(LoadStmt), CreateDomainStmt(Box<CreateDomainStmt>), CreatedbStmt(CreatedbStmt), DropdbStmt(DropdbStmt), VacuumStmt(VacuumStmt), ExplainStmt(Box<ExplainStmt>), CreateTableAsStmt(Box<CreateTableAsStmt>), CreateSeqStmt(CreateSeqStmt), AlterSeqStmt(AlterSeqStmt), VariableSetStmt(VariableSetStmt), VariableShowStmt(VariableShowStmt), DiscardStmt(DiscardStmt), CreateTrigStmt(Box<CreateTrigStmt>), CreatePlangStmt(CreatePLangStmt), CreateRoleStmt(CreateRoleStmt), AlterRoleStmt(AlterRoleStmt), DropRoleStmt(DropRoleStmt), LockStmt(LockStmt), ConstraintsSetStmt(ConstraintsSetStmt), ReindexStmt(ReindexStmt), CheckPointStmt(CheckPointStmt), CreateSchemaStmt(CreateSchemaStmt), AlterDatabaseStmt(AlterDatabaseStmt), AlterDatabaseSetStmt(AlterDatabaseSetStmt), AlterRoleSetStmt(AlterRoleSetStmt), CreateConversionStmt(CreateConversionStmt), CreateCastStmt(CreateCastStmt), CreateOpClassStmt(CreateOpClassStmt), CreateOpFamilyStmt(CreateOpFamilyStmt), AlterOpFamilyStmt(AlterOpFamilyStmt), PrepareStmt(Box<PrepareStmt>), ExecuteStmt(ExecuteStmt), DeallocateStmt(DeallocateStmt), DeclareCursorStmt(Box<DeclareCursorStmt>), CreateTableSpaceStmt(CreateTableSpaceStmt), DropTableSpaceStmt(DropTableSpaceStmt), AlterObjectDependsStmt(Box<AlterObjectDependsStmt>), AlterObjectSchemaStmt(Box<AlterObjectSchemaStmt>), AlterOwnerStmt(Box<AlterOwnerStmt>), AlterOperatorStmt(AlterOperatorStmt), AlterTypeStmt(AlterTypeStmt), DropOwnedStmt(DropOwnedStmt), ReassignOwnedStmt(ReassignOwnedStmt), CompositeTypeStmt(CompositeTypeStmt), CreateEnumStmt(CreateEnumStmt), CreateRangeStmt(CreateRangeStmt), AlterEnumStmt(AlterEnumStmt), AlterTsdictionaryStmt(AlterTsDictionaryStmt), AlterTsconfigurationStmt(AlterTsConfigurationStmt), CreateFdwStmt(CreateFdwStmt), AlterFdwStmt(AlterFdwStmt), CreateForeignServerStmt(CreateForeignServerStmt), AlterForeignServerStmt(AlterForeignServerStmt), CreateUserMappingStmt(CreateUserMappingStmt), AlterUserMappingStmt(AlterUserMappingStmt), DropUserMappingStmt(DropUserMappingStmt), AlterTableSpaceOptionsStmt(AlterTableSpaceOptionsStmt), AlterTableMoveAllStmt(AlterTableMoveAllStmt), SecLabelStmt(Box<SecLabelStmt>), CreateForeignTableStmt(CreateForeignTableStmt), ImportForeignSchemaStmt(ImportForeignSchemaStmt), CreateExtensionStmt(CreateExtensionStmt), AlterExtensionStmt(AlterExtensionStmt), AlterExtensionContentsStmt(Box<AlterExtensionContentsStmt>), CreateEventTrigStmt(CreateEventTrigStmt), AlterEventTrigStmt(AlterEventTrigStmt), RefreshMatViewStmt(RefreshMatViewStmt), ReplicaIdentityStmt(ReplicaIdentityStmt), AlterSystemStmt(AlterSystemStmt), CreatePolicyStmt(Box<CreatePolicyStmt>), AlterPolicyStmt(Box<AlterPolicyStmt>), CreateTransformStmt(CreateTransformStmt), CreateAmStmt(CreateAmStmt), CreatePublicationStmt(CreatePublicationStmt), AlterPublicationStmt(AlterPublicationStmt), CreateSubscriptionStmt(CreateSubscriptionStmt), AlterSubscriptionStmt(AlterSubscriptionStmt), DropSubscriptionStmt(DropSubscriptionStmt), CreateStatsStmt(CreateStatsStmt), AlterCollationStmt(AlterCollationStmt), CallStmt(Box<CallStmt>), AlterStatsStmt(AlterStatsStmt), AExpr(Box<AExpr>), ColumnRef(ColumnRef), ParamRef(ParamRef), AConst(Box<AConst>), FuncCall(Box<FuncCall>), AStar(AStar), AIndices(Box<AIndices>), AIndirection(Box<AIndirection>), AArrayExpr(AArrayExpr), ResTarget(Box<ResTarget>), MultiAssignRef(Box<MultiAssignRef>), TypeCast(Box<TypeCast>), CollateClause(Box<CollateClause>), SortBy(Box<SortBy>), WindowDef(Box<WindowDef>), RangeSubselect(Box<RangeSubselect>), RangeFunction(RangeFunction), RangeTableSample(Box<RangeTableSample>), RangeTableFunc(Box<RangeTableFunc>), RangeTableFuncCol(Box<RangeTableFuncCol>), TypeName(TypeName), ColumnDef(Box<ColumnDef>), IndexElem(Box<IndexElem>), Constraint(Box<Constraint>), DefElem(Box<DefElem>), RangeTblEntry(Box<RangeTblEntry>), RangeTblFunction(Box<RangeTblFunction>), TableSampleClause(Box<TableSampleClause>), WithCheckOption(Box<WithCheckOption>), SortGroupClause(SortGroupClause), GroupingSet(GroupingSet), WindowClause(Box<WindowClause>), ObjectWithArgs(ObjectWithArgs), AccessPriv(AccessPriv), CreateOpClassItem(CreateOpClassItem), TableLikeClause(TableLikeClause), FunctionParameter(Box<FunctionParameter>), LockingClause(LockingClause), RowMarkClause(RowMarkClause), XmlSerialize(Box<XmlSerialize>), WithClause(WithClause), InferClause(Box<InferClause>), OnConflictClause(Box<OnConflictClause>), CommonTableExpr(Box<CommonTableExpr>), RoleSpec(RoleSpec), TriggerTransition(TriggerTransition), PartitionElem(Box<PartitionElem>), PartitionSpec(PartitionSpec), PartitionBoundSpec(PartitionBoundSpec), PartitionRangeDatum(Box<PartitionRangeDatum>), PartitionCmd(PartitionCmd), VacuumRelation(VacuumRelation), InlineCodeBlock(InlineCodeBlock), CallContext(CallContext), Integer(Integer), Float(Float), String(String), BitString(BitString), Null(Null), List(List), IntList(IntList), OidList(OidList),
}

Variants§

§

Alias(Alias)

§

RangeVar(RangeVar)

§

TableFunc(Box<TableFunc>)

§

Expr(Expr)

§

Var(Box<Var>)

§

Param(Box<Param>)

§

Aggref(Box<Aggref>)

§

GroupingFunc(Box<GroupingFunc>)

§

WindowFunc(Box<WindowFunc>)

§

SubscriptingRef(Box<SubscriptingRef>)

§

FuncExpr(Box<FuncExpr>)

§

NamedArgExpr(Box<NamedArgExpr>)

§

OpExpr(Box<OpExpr>)

§

DistinctExpr(Box<DistinctExpr>)

§

NullIfExpr(Box<NullIfExpr>)

§

ScalarArrayOpExpr(Box<ScalarArrayOpExpr>)

§

BoolExpr(Box<BoolExpr>)

§

SubPlan(Box<SubPlan>)

§

AlternativeSubPlan(Box<AlternativeSubPlan>)

§

FieldSelect(Box<FieldSelect>)

§

FieldStore(Box<FieldStore>)

§

RelabelType(Box<RelabelType>)

§

CoerceViaIo(Box<CoerceViaIo>)

§

ArrayCoerceExpr(Box<ArrayCoerceExpr>)

§

ConvertRowtypeExpr(Box<ConvertRowtypeExpr>)

§

CollateExpr(Box<CollateExpr>)

§

CaseExpr(Box<CaseExpr>)

§

CaseWhen(Box<CaseWhen>)

§

CaseTestExpr(Box<CaseTestExpr>)

§

ArrayExpr(Box<ArrayExpr>)

§

RowExpr(Box<RowExpr>)

§

RowCompareExpr(Box<RowCompareExpr>)

§

CoalesceExpr(Box<CoalesceExpr>)

§

MinMaxExpr(Box<MinMaxExpr>)

§

SqlvalueFunction(Box<SqlValueFunction>)

§

XmlExpr(Box<XmlExpr>)

§

NullTest(Box<NullTest>)

§

BooleanTest(Box<BooleanTest>)

§

CoerceToDomain(Box<CoerceToDomain>)

§

CoerceToDomainValue(Box<CoerceToDomainValue>)

§

SetToDefault(Box<SetToDefault>)

§

CurrentOfExpr(Box<CurrentOfExpr>)

§

NextValueExpr(Box<NextValueExpr>)

§

InferenceElem(Box<InferenceElem>)

§

TargetEntry(Box<TargetEntry>)

§

RangeTblRef(RangeTblRef)

§

JoinExpr(Box<JoinExpr>)

§

FromExpr(Box<FromExpr>)

§

OnConflictExpr(Box<OnConflictExpr>)

§

IntoClause(Box<IntoClause>)

§

RawStmt(Box<RawStmt>)

§

Query(Box<Query>)

§

InsertStmt(Box<InsertStmt>)

§

DeleteStmt(Box<DeleteStmt>)

§

UpdateStmt(Box<UpdateStmt>)

§

SelectStmt(Box<SelectStmt>)

§

AlterTableStmt(AlterTableStmt)

§

AlterTableCmd(Box<AlterTableCmd>)

§

AlterDomainStmt(Box<AlterDomainStmt>)

§

SetOperationStmt(Box<SetOperationStmt>)

§

GrantStmt(GrantStmt)

§

GrantRoleStmt(GrantRoleStmt)

§

AlterDefaultPrivilegesStmt(AlterDefaultPrivilegesStmt)

§

ClosePortalStmt(ClosePortalStmt)

§

ClusterStmt(ClusterStmt)

§

CopyStmt(Box<CopyStmt>)

§

CreateStmt(CreateStmt)

§

DefineStmt(DefineStmt)

§

DropStmt(DropStmt)

§

TruncateStmt(TruncateStmt)

§

CommentStmt(Box<CommentStmt>)

§

FetchStmt(FetchStmt)

§

IndexStmt(Box<IndexStmt>)

§

CreateFunctionStmt(CreateFunctionStmt)

§

AlterFunctionStmt(AlterFunctionStmt)

§

DoStmt(DoStmt)

§

RenameStmt(Box<RenameStmt>)

§

RuleStmt(Box<RuleStmt>)

§

NotifyStmt(NotifyStmt)

§

ListenStmt(ListenStmt)

§

UnlistenStmt(UnlistenStmt)

§

TransactionStmt(TransactionStmt)

§

ViewStmt(Box<ViewStmt>)

§

LoadStmt(LoadStmt)

§

CreateDomainStmt(Box<CreateDomainStmt>)

§

CreatedbStmt(CreatedbStmt)

§

DropdbStmt(DropdbStmt)

§

VacuumStmt(VacuumStmt)

§

ExplainStmt(Box<ExplainStmt>)

§

CreateTableAsStmt(Box<CreateTableAsStmt>)

§

CreateSeqStmt(CreateSeqStmt)

§

AlterSeqStmt(AlterSeqStmt)

§

VariableSetStmt(VariableSetStmt)

§

VariableShowStmt(VariableShowStmt)

§

DiscardStmt(DiscardStmt)

§

CreateTrigStmt(Box<CreateTrigStmt>)

§

CreatePlangStmt(CreatePLangStmt)

§

CreateRoleStmt(CreateRoleStmt)

§

AlterRoleStmt(AlterRoleStmt)

§

DropRoleStmt(DropRoleStmt)

§

LockStmt(LockStmt)

§

ConstraintsSetStmt(ConstraintsSetStmt)

§

ReindexStmt(ReindexStmt)

§

CheckPointStmt(CheckPointStmt)

§

CreateSchemaStmt(CreateSchemaStmt)

§

AlterDatabaseStmt(AlterDatabaseStmt)

§

AlterDatabaseSetStmt(AlterDatabaseSetStmt)

§

AlterRoleSetStmt(AlterRoleSetStmt)

§

CreateConversionStmt(CreateConversionStmt)

§

CreateCastStmt(CreateCastStmt)

§

CreateOpClassStmt(CreateOpClassStmt)

§

CreateOpFamilyStmt(CreateOpFamilyStmt)

§

AlterOpFamilyStmt(AlterOpFamilyStmt)

§

PrepareStmt(Box<PrepareStmt>)

§

ExecuteStmt(ExecuteStmt)

§

DeallocateStmt(DeallocateStmt)

§

DeclareCursorStmt(Box<DeclareCursorStmt>)

§

CreateTableSpaceStmt(CreateTableSpaceStmt)

§

DropTableSpaceStmt(DropTableSpaceStmt)

§

AlterObjectDependsStmt(Box<AlterObjectDependsStmt>)

§

AlterObjectSchemaStmt(Box<AlterObjectSchemaStmt>)

§

AlterOwnerStmt(Box<AlterOwnerStmt>)

§

AlterOperatorStmt(AlterOperatorStmt)

§

AlterTypeStmt(AlterTypeStmt)

§

DropOwnedStmt(DropOwnedStmt)

§

ReassignOwnedStmt(ReassignOwnedStmt)

§

CompositeTypeStmt(CompositeTypeStmt)

§

CreateEnumStmt(CreateEnumStmt)

§

CreateRangeStmt(CreateRangeStmt)

§

AlterEnumStmt(AlterEnumStmt)

§

AlterTsdictionaryStmt(AlterTsDictionaryStmt)

§

AlterTsconfigurationStmt(AlterTsConfigurationStmt)

§

CreateFdwStmt(CreateFdwStmt)

§

AlterFdwStmt(AlterFdwStmt)

§

CreateForeignServerStmt(CreateForeignServerStmt)

§

AlterForeignServerStmt(AlterForeignServerStmt)

§

CreateUserMappingStmt(CreateUserMappingStmt)

§

AlterUserMappingStmt(AlterUserMappingStmt)

§

DropUserMappingStmt(DropUserMappingStmt)

§

AlterTableSpaceOptionsStmt(AlterTableSpaceOptionsStmt)

§

AlterTableMoveAllStmt(AlterTableMoveAllStmt)

§

SecLabelStmt(Box<SecLabelStmt>)

§

CreateForeignTableStmt(CreateForeignTableStmt)

§

ImportForeignSchemaStmt(ImportForeignSchemaStmt)

§

CreateExtensionStmt(CreateExtensionStmt)

§

AlterExtensionStmt(AlterExtensionStmt)

§

AlterExtensionContentsStmt(Box<AlterExtensionContentsStmt>)

§

CreateEventTrigStmt(CreateEventTrigStmt)

§

AlterEventTrigStmt(AlterEventTrigStmt)

§

RefreshMatViewStmt(RefreshMatViewStmt)

§

ReplicaIdentityStmt(ReplicaIdentityStmt)

§

AlterSystemStmt(AlterSystemStmt)

§

CreatePolicyStmt(Box<CreatePolicyStmt>)

§

AlterPolicyStmt(Box<AlterPolicyStmt>)

§

CreateTransformStmt(CreateTransformStmt)

§

CreateAmStmt(CreateAmStmt)

§

CreatePublicationStmt(CreatePublicationStmt)

§

AlterPublicationStmt(AlterPublicationStmt)

§

CreateSubscriptionStmt(CreateSubscriptionStmt)

§

AlterSubscriptionStmt(AlterSubscriptionStmt)

§

DropSubscriptionStmt(DropSubscriptionStmt)

§

CreateStatsStmt(CreateStatsStmt)

§

AlterCollationStmt(AlterCollationStmt)

§

CallStmt(Box<CallStmt>)

§

AlterStatsStmt(AlterStatsStmt)

§

AExpr(Box<AExpr>)

§

ColumnRef(ColumnRef)

§

ParamRef(ParamRef)

§

AConst(Box<AConst>)

§

FuncCall(Box<FuncCall>)

§

AStar(AStar)

§

AIndices(Box<AIndices>)

§

AIndirection(Box<AIndirection>)

§

AArrayExpr(AArrayExpr)

§

ResTarget(Box<ResTarget>)

§

MultiAssignRef(Box<MultiAssignRef>)

§

TypeCast(Box<TypeCast>)

§

CollateClause(Box<CollateClause>)

§

SortBy(Box<SortBy>)

§

WindowDef(Box<WindowDef>)

§

RangeSubselect(Box<RangeSubselect>)

§

RangeFunction(RangeFunction)

§

RangeTableSample(Box<RangeTableSample>)

§

RangeTableFunc(Box<RangeTableFunc>)

§

RangeTableFuncCol(Box<RangeTableFuncCol>)

§

TypeName(TypeName)

§

ColumnDef(Box<ColumnDef>)

§

IndexElem(Box<IndexElem>)

§

Constraint(Box<Constraint>)

§

DefElem(Box<DefElem>)

§

RangeTblEntry(Box<RangeTblEntry>)

§

RangeTblFunction(Box<RangeTblFunction>)

§

TableSampleClause(Box<TableSampleClause>)

§

WithCheckOption(Box<WithCheckOption>)

§

SortGroupClause(SortGroupClause)

§

GroupingSet(GroupingSet)

§

WindowClause(Box<WindowClause>)

§

ObjectWithArgs(ObjectWithArgs)

§

AccessPriv(AccessPriv)

§

CreateOpClassItem(CreateOpClassItem)

§

TableLikeClause(TableLikeClause)

§

FunctionParameter(Box<FunctionParameter>)

§

LockingClause(LockingClause)

§

RowMarkClause(RowMarkClause)

§

XmlSerialize(Box<XmlSerialize>)

§

WithClause(WithClause)

§

InferClause(Box<InferClause>)

§

OnConflictClause(Box<OnConflictClause>)

§

CommonTableExpr(Box<CommonTableExpr>)

§

RoleSpec(RoleSpec)

§

TriggerTransition(TriggerTransition)

§

PartitionElem(Box<PartitionElem>)

§

PartitionSpec(PartitionSpec)

§

PartitionBoundSpec(PartitionBoundSpec)

§

PartitionRangeDatum(Box<PartitionRangeDatum>)

§

PartitionCmd(PartitionCmd)

§

VacuumRelation(VacuumRelation)

§

InlineCodeBlock(InlineCodeBlock)

§

CallContext(CallContext)

§

Integer(Integer)

§

Float(Float)

§

String(String)

§

BitString(BitString)

§

Null(Null)

§

List(List)

§

IntList(IntList)

§

OidList(OidList)

Implementations§

Source§

impl Node

Source

pub fn encode<B>(&self, buf: &mut B)
where B: BufMut,

Source

pub fn merge<B>( field: &mut Option<Node>, tag: u32, wire_type: WireType, buf: &mut B, ctx: DecodeContext, ) -> Result<(), DecodeError>
where B: Buf,

Source

pub fn encoded_len(&self) -> usize

Trait Implementations§

Source§

impl Clone for Node

Source§

fn clone(&self) -> Node

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 Node

Source§

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

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

impl PartialEq for Node

Source§

fn eq(&self, other: &Node) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Node

Auto Trait Implementations§

§

impl Freeze for Node

§

impl RefUnwindSafe for Node

§

impl Send for Node

§

impl Sync for Node

§

impl Unpin for Node

§

impl UnwindSafe for Node

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> 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> 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.