Skip to main content

FragmentRef

Enum FragmentRef 

Source
pub enum FragmentRef<'lt> {
Show 64 variants GlobalId(&'lt GlobalId), Span(&'lt Span), Expr(&'lt Expr), Pat(&'lt Pat), ExprKind(&'lt ExprKind), PatKind(&'lt PatKind), Ty(&'lt Ty), TyKind(&'lt TyKind), Metadata(&'lt Metadata), Literal(&'lt Literal), LocalId(&'lt LocalId), Lhs(&'lt Lhs), Symbol(&'lt Symbol), LoopKind(&'lt LoopKind), SafetyKind(&'lt SafetyKind), Quote(&'lt Quote), SpannedTy(&'lt SpannedTy), BindingMode(&'lt BindingMode), PrimitiveTy(&'lt PrimitiveTy), Region(&'lt Region), ImplExpr(&'lt ImplExpr), IntKind(&'lt IntKind), FloatKind(&'lt FloatKind), GenericValue(&'lt GenericValue), Arm(&'lt Arm), LoopState(&'lt LoopState), ControlFlowKind(&'lt ControlFlowKind), DynTraitGoal(&'lt DynTraitGoal), Attribute(&'lt Attribute), QuoteContent(&'lt QuoteContent), BorrowKind(&'lt BorrowKind), TraitGoal(&'lt TraitGoal), ImplExprKind(&'lt ImplExprKind), IntSize(&'lt IntSize), Signedness(&'lt Signedness), Guard(&'lt Guard), AttributeKind(&'lt AttributeKind), GuardKind(&'lt GuardKind), ImplItem(&'lt ImplItem), ImplItemKind(&'lt ImplItemKind), TraitItem(&'lt TraitItem), TraitItemKind(&'lt TraitItemKind), ItemQuoteOrigin(&'lt ItemQuoteOrigin), ItemQuoteOriginKind(&'lt ItemQuoteOriginKind), ItemQuoteOriginPosition(&'lt ItemQuoteOriginPosition), GenericParamKind(&'lt GenericParamKind), ImplIdent(&'lt ImplIdent), ProjectionPredicate(&'lt ProjectionPredicate), GenericParam(&'lt GenericParam), Generics(&'lt Generics), DocCommentKind(&'lt DocCommentKind), Param(&'lt Param), Variant(&'lt Variant), ItemKind(&'lt ItemKind), Item(&'lt Item), GenericConstraint(&'lt GenericConstraint), ErrorNode(&'lt ErrorNode), Module(&'lt Module), ResugaredExprKind(&'lt ResugaredExprKind), ResugaredTyKind(&'lt ResugaredTyKind), ResugaredPatKind(&'lt ResugaredPatKind), ResugaredImplItemKind(&'lt ResugaredImplItemKind), ResugaredTraitItemKind(&'lt ResugaredTraitItemKind), ResugaredItemKind(&'lt ResugaredItemKind),
}
Expand description

A borrowed fragment of AST in hax.

Variants§

§

GlobalId(&'lt GlobalId)

A borrowed GlobalId node.

§

Span(&'lt Span)

A borrowed Span node.

§

Expr(&'lt Expr)

A borrowed Expr node.

§

Pat(&'lt Pat)

A borrowed Pat node.

§

ExprKind(&'lt ExprKind)

A borrowed ExprKind node.

§

PatKind(&'lt PatKind)

A borrowed PatKind node.

§

Ty(&'lt Ty)

A borrowed Ty node.

§

TyKind(&'lt TyKind)

A borrowed TyKind node.

§

Metadata(&'lt Metadata)

A borrowed Metadata node.

§

Literal(&'lt Literal)

A borrowed Literal node.

§

LocalId(&'lt LocalId)

A borrowed LocalId node.

§

Lhs(&'lt Lhs)

A borrowed Lhs node.

§

Symbol(&'lt Symbol)

A borrowed Symbol node.

§

LoopKind(&'lt LoopKind)

A borrowed LoopKind node.

§

SafetyKind(&'lt SafetyKind)

A borrowed SafetyKind node.

§

Quote(&'lt Quote)

A borrowed Quote node.

§

SpannedTy(&'lt SpannedTy)

A borrowed SpannedTy node.

§

BindingMode(&'lt BindingMode)

A borrowed BindingMode node.

§

PrimitiveTy(&'lt PrimitiveTy)

A borrowed PrimitiveTy node.

§

Region(&'lt Region)

A borrowed Region node.

§

ImplExpr(&'lt ImplExpr)

A borrowed ImplExpr node.

§

IntKind(&'lt IntKind)

A borrowed IntKind node.

§

FloatKind(&'lt FloatKind)

A borrowed FloatKind node.

§

GenericValue(&'lt GenericValue)

A borrowed GenericValue node.

§

Arm(&'lt Arm)

A borrowed Arm node.

§

LoopState(&'lt LoopState)

A borrowed LoopState node.

§

ControlFlowKind(&'lt ControlFlowKind)

A borrowed ControlFlowKind node.

§

DynTraitGoal(&'lt DynTraitGoal)

A borrowed DynTraitGoal node.

§

Attribute(&'lt Attribute)

A borrowed Attribute node.

§

QuoteContent(&'lt QuoteContent)

A borrowed QuoteContent node.

§

BorrowKind(&'lt BorrowKind)

A borrowed BorrowKind node.

§

TraitGoal(&'lt TraitGoal)

A borrowed TraitGoal node.

§

ImplExprKind(&'lt ImplExprKind)

A borrowed ImplExprKind node.

§

IntSize(&'lt IntSize)

A borrowed IntSize node.

§

Signedness(&'lt Signedness)

A borrowed Signedness node.

§

Guard(&'lt Guard)

A borrowed Guard node.

§

AttributeKind(&'lt AttributeKind)

A borrowed AttributeKind node.

§

GuardKind(&'lt GuardKind)

A borrowed GuardKind node.

§

ImplItem(&'lt ImplItem)

A borrowed ImplItem node.

§

ImplItemKind(&'lt ImplItemKind)

A borrowed ImplItemKind node.

§

TraitItem(&'lt TraitItem)

A borrowed TraitItem node.

§

TraitItemKind(&'lt TraitItemKind)

A borrowed TraitItemKind node.

§

ItemQuoteOrigin(&'lt ItemQuoteOrigin)

A borrowed ItemQuoteOrigin node.

§

ItemQuoteOriginKind(&'lt ItemQuoteOriginKind)

A borrowed ItemQuoteOriginKind node.

§

ItemQuoteOriginPosition(&'lt ItemQuoteOriginPosition)

A borrowed ItemQuoteOriginPosition node.

§

GenericParamKind(&'lt GenericParamKind)

A borrowed GenericParamKind node.

§

ImplIdent(&'lt ImplIdent)

A borrowed ImplIdent node.

§

ProjectionPredicate(&'lt ProjectionPredicate)

A borrowed ProjectionPredicate node.

§

GenericParam(&'lt GenericParam)

A borrowed GenericParam node.

§

Generics(&'lt Generics)

A borrowed Generics node.

§

DocCommentKind(&'lt DocCommentKind)

A borrowed DocCommentKind node.

§

Param(&'lt Param)

A borrowed Param node.

§

Variant(&'lt Variant)

A borrowed Variant node.

§

ItemKind(&'lt ItemKind)

A borrowed ItemKind node.

§

Item(&'lt Item)

A borrowed Item node.

§

GenericConstraint(&'lt GenericConstraint)

A borrowed GenericConstraint node.

§

ErrorNode(&'lt ErrorNode)

A borrowed ErrorNode node.

§

Module(&'lt Module)

A borrowed Module node.

§

ResugaredExprKind(&'lt ResugaredExprKind)

A borrowed ResugaredExprKind node.

§

ResugaredTyKind(&'lt ResugaredTyKind)

A borrowed ResugaredTyKind node.

§

ResugaredPatKind(&'lt ResugaredPatKind)

A borrowed ResugaredPatKind node.

§

ResugaredImplItemKind(&'lt ResugaredImplItemKind)

A borrowed ResugaredImplItemKind node.

§

ResugaredTraitItemKind(&'lt ResugaredTraitItemKind)

A borrowed ResugaredTraitItemKind node.

§

ResugaredItemKind(&'lt ResugaredItemKind)

A borrowed ResugaredItemKind node.

Trait Implementations§

Source§

impl<'lt> Clone for FragmentRef<'lt>

Source§

fn clone(&self) -> FragmentRef<'lt>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl<'lt> Copy for FragmentRef<'lt>

Source§

impl<'lt> Debug for FragmentRef<'lt>

Source§

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

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

impl<'lt, 's, V> Drive<'s, V> for FragmentRef<'lt>
where V: Visitor + Visit<'s, &'lt GlobalId> + Visit<'s, &'lt Span> + Visit<'s, &'lt Expr> + Visit<'s, &'lt Pat> + Visit<'s, &'lt ExprKind> + Visit<'s, &'lt PatKind> + Visit<'s, &'lt Ty> + Visit<'s, &'lt TyKind> + Visit<'s, &'lt Metadata> + Visit<'s, &'lt Literal> + Visit<'s, &'lt LocalId> + Visit<'s, &'lt Lhs> + Visit<'s, &'lt Symbol> + Visit<'s, &'lt LoopKind> + Visit<'s, &'lt SafetyKind> + Visit<'s, &'lt Quote> + Visit<'s, &'lt SpannedTy> + Visit<'s, &'lt BindingMode> + Visit<'s, &'lt PrimitiveTy> + Visit<'s, &'lt Region> + Visit<'s, &'lt ImplExpr> + Visit<'s, &'lt IntKind> + Visit<'s, &'lt FloatKind> + Visit<'s, &'lt GenericValue> + Visit<'s, &'lt Arm> + Visit<'s, &'lt LoopState> + Visit<'s, &'lt ControlFlowKind> + Visit<'s, &'lt DynTraitGoal> + Visit<'s, &'lt Attribute> + Visit<'s, &'lt QuoteContent> + Visit<'s, &'lt BorrowKind> + Visit<'s, &'lt TraitGoal> + Visit<'s, &'lt ImplExprKind> + Visit<'s, &'lt IntSize> + Visit<'s, &'lt Signedness> + Visit<'s, &'lt Guard> + Visit<'s, &'lt AttributeKind> + Visit<'s, &'lt GuardKind> + Visit<'s, &'lt ImplItem> + Visit<'s, &'lt ImplItemKind> + Visit<'s, &'lt TraitItem> + Visit<'s, &'lt TraitItemKind> + Visit<'s, &'lt ItemQuoteOrigin> + Visit<'s, &'lt ItemQuoteOriginKind> + Visit<'s, &'lt ItemQuoteOriginPosition> + Visit<'s, &'lt GenericParamKind> + Visit<'s, &'lt ImplIdent> + Visit<'s, &'lt ProjectionPredicate> + Visit<'s, &'lt GenericParam> + Visit<'s, &'lt Generics> + Visit<'s, &'lt DocCommentKind> + Visit<'s, &'lt Param> + Visit<'s, &'lt Variant> + Visit<'s, &'lt ItemKind> + Visit<'s, &'lt Item> + Visit<'s, &'lt GenericConstraint> + Visit<'s, &'lt ErrorNode> + Visit<'s, &'lt Module> + Visit<'s, &'lt ResugaredExprKind> + Visit<'s, &'lt ResugaredTyKind> + Visit<'s, &'lt ResugaredPatKind> + Visit<'s, &'lt ResugaredImplItemKind> + Visit<'s, &'lt ResugaredTraitItemKind> + Visit<'s, &'lt ResugaredItemKind>,

Source§

fn drive_inner(&'s self, visitor: &mut V) -> ControlFlow<V::Break>

Call v.visit() on the immediate contents of self.
Source§

impl<'lt, 's, V> DriveMut<'s, V> for FragmentRef<'lt>
where V: Visitor + VisitMut<'s, &'lt GlobalId> + VisitMut<'s, &'lt Span> + VisitMut<'s, &'lt Expr> + VisitMut<'s, &'lt Pat> + VisitMut<'s, &'lt ExprKind> + VisitMut<'s, &'lt PatKind> + VisitMut<'s, &'lt Ty> + VisitMut<'s, &'lt TyKind> + VisitMut<'s, &'lt Metadata> + VisitMut<'s, &'lt Literal> + VisitMut<'s, &'lt LocalId> + VisitMut<'s, &'lt Lhs> + VisitMut<'s, &'lt Symbol> + VisitMut<'s, &'lt LoopKind> + VisitMut<'s, &'lt SafetyKind> + VisitMut<'s, &'lt Quote> + VisitMut<'s, &'lt SpannedTy> + VisitMut<'s, &'lt BindingMode> + VisitMut<'s, &'lt PrimitiveTy> + VisitMut<'s, &'lt Region> + VisitMut<'s, &'lt ImplExpr> + VisitMut<'s, &'lt IntKind> + VisitMut<'s, &'lt FloatKind> + VisitMut<'s, &'lt GenericValue> + VisitMut<'s, &'lt Arm> + VisitMut<'s, &'lt LoopState> + VisitMut<'s, &'lt ControlFlowKind> + VisitMut<'s, &'lt DynTraitGoal> + VisitMut<'s, &'lt Attribute> + VisitMut<'s, &'lt QuoteContent> + VisitMut<'s, &'lt BorrowKind> + VisitMut<'s, &'lt TraitGoal> + VisitMut<'s, &'lt ImplExprKind> + VisitMut<'s, &'lt IntSize> + VisitMut<'s, &'lt Signedness> + VisitMut<'s, &'lt Guard> + VisitMut<'s, &'lt AttributeKind> + VisitMut<'s, &'lt GuardKind> + VisitMut<'s, &'lt ImplItem> + VisitMut<'s, &'lt ImplItemKind> + VisitMut<'s, &'lt TraitItem> + VisitMut<'s, &'lt TraitItemKind> + VisitMut<'s, &'lt ItemQuoteOrigin> + VisitMut<'s, &'lt ItemQuoteOriginKind> + VisitMut<'s, &'lt ItemQuoteOriginPosition> + VisitMut<'s, &'lt GenericParamKind> + VisitMut<'s, &'lt ImplIdent> + VisitMut<'s, &'lt ProjectionPredicate> + VisitMut<'s, &'lt GenericParam> + VisitMut<'s, &'lt Generics> + VisitMut<'s, &'lt DocCommentKind> + VisitMut<'s, &'lt Param> + VisitMut<'s, &'lt Variant> + VisitMut<'s, &'lt ItemKind> + VisitMut<'s, &'lt Item> + VisitMut<'s, &'lt GenericConstraint> + VisitMut<'s, &'lt ErrorNode> + VisitMut<'s, &'lt Module> + VisitMut<'s, &'lt ResugaredExprKind> + VisitMut<'s, &'lt ResugaredTyKind> + VisitMut<'s, &'lt ResugaredPatKind> + VisitMut<'s, &'lt ResugaredImplItemKind> + VisitMut<'s, &'lt ResugaredTraitItemKind> + VisitMut<'s, &'lt ResugaredItemKind>,

Source§

fn drive_inner_mut(&'s mut self, visitor: &mut V) -> ControlFlow<V::Break>

Call v.visit() on the immediate contents of self.
Source§

impl<'lt> Eq for FragmentRef<'lt>

Source§

impl<'lt> From<&'lt Arm> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt Arm) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt Attribute> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt Attribute) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt AttributeKind> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt AttributeKind) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt BindingMode> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt BindingMode) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt BorrowKind> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt BorrowKind) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt ControlFlowKind> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt ControlFlowKind) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt DocCommentKind> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt DocCommentKind) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt DynTraitGoal> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt DynTraitGoal) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt ErrorNode> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt ErrorNode) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt Expr> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt Expr) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt ExprKind> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt ExprKind) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt FloatKind> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt FloatKind) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt GenericConstraint> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt GenericConstraint) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt GenericParam> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt GenericParam) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt GenericParamKind> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt GenericParamKind) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt GenericValue> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt GenericValue) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt Generics> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt Generics) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt GlobalId> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt GlobalId) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt Guard> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt Guard) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt GuardKind> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt GuardKind) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt ImplExpr> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt ImplExpr) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt ImplExprKind> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt ImplExprKind) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt ImplIdent> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt ImplIdent) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt ImplItem> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt ImplItem) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt ImplItemKind> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt ImplItemKind) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt IntKind> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt IntKind) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt IntSize> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt IntSize) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt Item> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt Item) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt ItemKind> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt ItemKind) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt ItemQuoteOrigin> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt ItemQuoteOrigin) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt ItemQuoteOriginKind> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt ItemQuoteOriginKind) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt ItemQuoteOriginPosition> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt ItemQuoteOriginPosition) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt Lhs> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt Lhs) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt Literal> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt Literal) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt LocalId> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt LocalId) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt LoopKind> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt LoopKind) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt LoopState> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt LoopState) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt Metadata> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt Metadata) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt Module> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt Module) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt Param> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt Param) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt Pat> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt Pat) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt PatKind> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt PatKind) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt PrimitiveTy> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt PrimitiveTy) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt ProjectionPredicate> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt ProjectionPredicate) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt Quote> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt Quote) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt QuoteContent> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt QuoteContent) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt Region> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt Region) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt ResugaredExprKind> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt ResugaredExprKind) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt ResugaredImplItemKind> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt ResugaredImplItemKind) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt ResugaredItemKind> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt ResugaredItemKind) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt ResugaredPatKind> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt ResugaredPatKind) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt ResugaredTraitItemKind> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt ResugaredTraitItemKind) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt ResugaredTyKind> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt ResugaredTyKind) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt SafetyKind> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt SafetyKind) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt Signedness> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt Signedness) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt Span> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt Span) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt SpannedTy> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt SpannedTy) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt Symbol> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt Symbol) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt TraitGoal> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt TraitGoal) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt TraitItem> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt TraitItem) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt TraitItemKind> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt TraitItemKind) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt Ty> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt Ty) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt TyKind> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt TyKind) -> Self

Converts to this type from the input type.
Source§

impl<'lt> From<&'lt Variant> for FragmentRef<'lt>

Source§

fn from(fragment: &'lt Variant) -> Self

Converts to this type from the input type.
Source§

impl<'lt> Hash for FragmentRef<'lt>

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<'lt> Ord for FragmentRef<'lt>

Source§

fn cmp(&self, other: &FragmentRef<'lt>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl<'lt> PartialEq for FragmentRef<'lt>

Source§

fn eq(&self, other: &FragmentRef<'lt>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl<'lt> PartialOrd for FragmentRef<'lt>

Source§

fn partial_cmp(&self, other: &FragmentRef<'lt>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<'lt> Serialize for FragmentRef<'lt>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'lt> StructuralPartialEq for FragmentRef<'lt>

Auto Trait Implementations§

§

impl<'lt> Freeze for FragmentRef<'lt>

§

impl<'lt> RefUnwindSafe for FragmentRef<'lt>

§

impl<'lt> Send for FragmentRef<'lt>

§

impl<'lt> Sync for FragmentRef<'lt>

§

impl<'lt> Unpin for FragmentRef<'lt>

§

impl<'lt> UnsafeUnpin for FragmentRef<'lt>

§

impl<'lt> UnwindSafe for FragmentRef<'lt>

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> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

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 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> IsBody for T
where T: Clone + 'static,

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