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§
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§
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: 80 bytes
Size for each variant:
Parent
: 79 bytesMethodCall
: 79 bytesStructField
: 15 bytesTupleField
: 15 bytesAwait
: 0 bytesComment
: 31 bytes