pub struct Guard {
pub cond: Expr,
pub span_with_leading_if: Span,
}Fields§
§cond: Expr§span_with_leading_if: SpanImplementations§
Trait Implementations§
Source§impl<V: MutVisitor> MutVisitable<V> for Guard
impl<V: MutVisitor> MutVisitable<V> for Guard
Source§impl<__V> MutWalkable<__V> for Guardwhere
__V: MutVisitor,
impl<__V> MutWalkable<__V> for Guardwhere
__V: MutVisitor,
Auto Trait Implementations§
impl DynSend for Guardwhere
ThinVec<Box<Expr>>: DynSend,
Box<Expr>: DynSend,
Box<MethodCall>: DynSend,
Box<Ty>: DynSend,
Box<Pat>: DynSend,
Box<Block>: DynSend,
Box<ForLoop>: DynSend,
ThinVec<Arm>: DynSend,
Box<Closure>: DynSend,
Box<QSelf>: DynSend,
ThinVec<PathSegment>: DynSend,
Box<InlineAsm>: DynSend,
ThinVec<Ident>: DynSend,
Box<MacCall>: DynSend,
Box<StructExpr>: DynSend,
Box<FormatArgs>: DynSend,
ThinVec<Attribute>: DynSend,
Arc<LazyTokenStreamInner>: DynSend,
impl DynSync for Guardwhere
ThinVec<Box<Expr>>: DynSync,
Box<Expr>: DynSync,
Box<MethodCall>: DynSync,
Box<Ty>: DynSync,
Box<Pat>: DynSync,
Box<Block>: DynSync,
Box<ForLoop>: DynSync,
ThinVec<Arm>: DynSync,
Box<Closure>: DynSync,
Box<QSelf>: DynSync,
ThinVec<PathSegment>: DynSync,
Box<InlineAsm>: DynSync,
ThinVec<Ident>: DynSync,
Box<MacCall>: DynSync,
Box<StructExpr>: DynSync,
Box<FormatArgs>: DynSync,
ThinVec<Attribute>: DynSync,
Arc<LazyTokenStreamInner>: DynSync,
impl Forget for Guard
impl Freeze for Guardwhere
*const Header is !null: Freeze,
PhantomData<Box<Expr>>: Freeze,
*const Expr is !null: Freeze,
PhantomData<Expr>: Freeze,
*const MethodCall is !null: Freeze,
PhantomData<MethodCall>: Freeze,
*const Ty is !null: Freeze,
PhantomData<Ty>: Freeze,
*const Pat is !null: Freeze,
PhantomData<Pat>: Freeze,
*const Block is !null: Freeze,
PhantomData<Block>: Freeze,
*const ForLoop is !null: Freeze,
PhantomData<ForLoop>: Freeze,
PhantomData<Arm>: Freeze,
*const Closure is !null: Freeze,
PhantomData<Closure>: Freeze,
*const QSelf is !null: Freeze,
PhantomData<QSelf>: Freeze,
PhantomData<PathSegment>: Freeze,
*const InlineAsm is !null: Freeze,
PhantomData<InlineAsm>: Freeze,
PhantomData<Ident>: Freeze,
*const MacCall is !null: Freeze,
PhantomData<MacCall>: Freeze,
*const StructExpr is !null: Freeze,
PhantomData<StructExpr>: Freeze,
*const FormatArgs is !null: Freeze,
PhantomData<FormatArgs>: Freeze,
PhantomData<Attribute>: Freeze,
*const ArcInner<LazyTokenStreamInner> is !null: Freeze,
PhantomData<ArcInner<LazyTokenStreamInner>>: Freeze,
impl Move for Guard
impl RefUnwindSafe for Guard
impl Send for Guardwhere
ThinVec<Box<Expr>>: Send,
BoxRaw<Expr>: Send,
BoxRaw<MethodCall>: Send,
BoxRaw<Ty>: Send,
BoxRaw<Pat>: Send,
BoxRaw<Block>: Send,
BoxRaw<ForLoop>: Send,
ThinVec<Arm>: Send,
BoxRaw<Closure>: Send,
BoxRaw<QSelf>: Send,
ThinVec<PathSegment>: Send,
BoxRaw<InlineAsm>: Send,
ThinVec<Ident>: Send,
BoxRaw<MacCall>: Send,
BoxRaw<StructExpr>: Send,
BoxRaw<FormatArgs>: Send,
ThinVec<Attribute>: Send,
Arc<LazyTokenStreamInner>: Send,
impl Sync for Guardwhere
ThinVec<Box<Expr>>: Sync,
BoxRaw<Expr>: Sync,
BoxRaw<MethodCall>: Sync,
BoxRaw<Ty>: Sync,
BoxRaw<Pat>: Sync,
BoxRaw<Block>: Sync,
BoxRaw<ForLoop>: Sync,
ThinVec<Arm>: Sync,
BoxRaw<Closure>: Sync,
BoxRaw<QSelf>: Sync,
ThinVec<PathSegment>: Sync,
BoxRaw<InlineAsm>: Sync,
ThinVec<Ident>: Sync,
BoxRaw<MacCall>: Sync,
BoxRaw<StructExpr>: Sync,
BoxRaw<FormatArgs>: Sync,
ThinVec<Attribute>: Sync,
Arc<LazyTokenStreamInner>: Sync,
impl Unpin for Guardwhere
*const Header is !null: Unpin,
Box<Expr>: Unpin,
Box<MethodCall>: Unpin,
Box<Ty>: Unpin,
Box<Pat>: Unpin,
Box<Block>: Unpin,
Box<ForLoop>: Unpin,
Box<NormalAttr>: Unpin,
Box<SyntheticAttr>: Unpin,
Box<Guard>: Unpin,
Box<Closure>: Unpin,
Box<QSelf>: Unpin,
Box<GenericArgs>: Unpin,
Box<InlineAsm>: Unpin,
Box<MacCall>: Unpin,
Box<StructExpr>: Unpin,
Box<FormatArgs>: Unpin,
Arc<LazyTokenStreamInner>: Unpin,
impl UnsafeUnpin for Guardwhere
*const Header is !null: UnsafeUnpin,
PhantomData<Box<Expr>>: UnsafeUnpin,
*const Expr is !null: UnsafeUnpin,
PhantomData<Expr>: UnsafeUnpin,
*const MethodCall is !null: UnsafeUnpin,
PhantomData<MethodCall>: UnsafeUnpin,
*const Ty is !null: UnsafeUnpin,
PhantomData<Ty>: UnsafeUnpin,
*const Pat is !null: UnsafeUnpin,
PhantomData<Pat>: UnsafeUnpin,
*const Block is !null: UnsafeUnpin,
PhantomData<Block>: UnsafeUnpin,
*const ForLoop is !null: UnsafeUnpin,
PhantomData<ForLoop>: UnsafeUnpin,
PhantomData<Arm>: UnsafeUnpin,
*const Closure is !null: UnsafeUnpin,
PhantomData<Closure>: UnsafeUnpin,
*const QSelf is !null: UnsafeUnpin,
PhantomData<QSelf>: UnsafeUnpin,
PhantomData<PathSegment>: UnsafeUnpin,
*const InlineAsm is !null: UnsafeUnpin,
PhantomData<InlineAsm>: UnsafeUnpin,
PhantomData<Ident>: UnsafeUnpin,
*const MacCall is !null: UnsafeUnpin,
PhantomData<MacCall>: UnsafeUnpin,
*const StructExpr is !null: UnsafeUnpin,
PhantomData<StructExpr>: UnsafeUnpin,
*const FormatArgs is !null: UnsafeUnpin,
PhantomData<FormatArgs>: UnsafeUnpin,
PhantomData<Attribute>: UnsafeUnpin,
*const ArcInner<LazyTokenStreamInner> is !null: UnsafeUnpin,
PhantomData<ArcInner<LazyTokenStreamInner>>: UnsafeUnpin,
impl UnwindSafe for Guardwhere
NonNull<Header>: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<MethodCall>: UnwindSafe,
BoxRaw<Ty>: UnwindSafe,
BoxRaw<Pat>: UnwindSafe,
BoxRaw<Block>: UnwindSafe,
BoxRaw<ForLoop>: UnwindSafe,
BoxRaw<NormalAttr>: UnwindSafe,
BoxRaw<SyntheticAttr>: UnwindSafe,
BoxRaw<Guard>: UnwindSafe,
BoxRaw<Closure>: UnwindSafe,
BoxRaw<QSelf>: UnwindSafe,
BoxRaw<GenericArgs>: UnwindSafe,
BoxRaw<InlineAsm>: UnwindSafe,
BoxRaw<MacCall>: UnwindSafe,
BoxRaw<StructExpr>: UnwindSafe,
BoxRaw<FormatArgs>: UnwindSafe,
Arc<LazyTokenStreamInner>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
Source§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 72 bytes