Enum rustfmt_nightly::chains::ChainItemKind
source · enum ChainItemKind {
Parent(Expr),
MethodCall(PathSegment, Vec<GenericArg>, Vec<P<Expr>>),
StructField(Ident),
TupleField(Ident, bool),
Await,
Comment(String, CommentPosition),
}
Variants
Parent(Expr)
MethodCall(PathSegment, Vec<GenericArg>, Vec<P<Expr>>)
StructField(Ident)
TupleField(Ident, bool)
Await
Comment(String, CommentPosition)
Implementations
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn 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: 104 bytes
Size for each variant:
Parent
: 104 bytesMethodCall
: 72 bytesStructField
: 12 bytesTupleField
: 16 bytesAwait
: 0 bytesComment
: 32 bytes