pub enum ChainPart {
Field {
name: Ident,
optional: bool,
span: Span,
},
Index {
idx: ExprId,
optional: bool,
span: Span,
},
Call {
args: Vec<ExprId>,
type_args: Option<Vec<TypeAnnotation>>,
optional: bool,
span: Span,
},
NonNull {
span: Span,
},
}Variants§
Field
Index
Call
NonNull
A ! continuation (a?.b!.c). Carries no optional flag: ! asserts the
value it is applied to is non-null, so it never short-circuits.
Implementations§
Trait Implementations§
impl StructuralPartialEq for ChainPart
Auto Trait Implementations§
impl Freeze for ChainPart
impl RefUnwindSafe for ChainPart
impl Send for ChainPart
impl Sync for ChainPart
impl Unpin for ChainPart
impl UnsafeUnpin for ChainPart
impl UnwindSafe for ChainPart
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