Enum rustfmt_nightly::chains::ChainItemKind
source · enum ChainItemKind {
Parent(Expr),
MethodCall(PathSegment, Vec<GenericArg>, ThinVec<P<Expr>>),
StructField(Ident),
TupleField(Ident, bool),
Await,
Comment(String, CommentPosition),
}
Variants§
Parent(Expr)
MethodCall(PathSegment, Vec<GenericArg>, ThinVec<P<Expr>>)
StructField(Ident)
TupleField(Ident, bool)
Await
Comment(String, CommentPosition)
Implementations§
source§impl ChainItemKind
impl ChainItemKind
fn is_block_like(&self, context: &RewriteContext<'_>, reps: &str) -> bool
fn is_tup_field_access(expr: &Expr) -> bool
fn from_ast(context: &RewriteContext<'_>, expr: &Expr) -> (ChainItemKind, Span)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ChainItemKind
impl !Send for ChainItemKind
impl !Sync for ChainItemKind
impl Unpin for ChainItemKind
impl !UnwindSafe for ChainItemKind
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
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
Size for each variant:
Parent
: 72 bytesMethodCall
: 56 bytesStructField
: 12 bytesTupleField
: 16 bytesAwait
: 0 bytesComment
: 32 bytes