Re-exportsΒ§
use super::ChainedNamedCall;πuse super::CommentConfig;πuse super::Separator;πuse super::State;πuse super::common::BlockFormat;πuse super::common::ListFormat;πuse crate::pp::SIZE_INFINITY;πuse crate::state::CallContext;πuse crate::state::common::LitExt;πuse foundry_common::comments::Comment;πuse foundry_common::iter::IterDelimited;πuse foundry_config::fmt as config;πuse foundry_config::fmt::MultilineFuncHeaderStyle;πuse solar::ast::BoxSlice;πuse solar::interface::SpannedOption;πuse solar::parse::ast;πuse solar::parse::ast::ImportItems;πuse solar::parse::ast::Span;πuse solar::parse::interface::BytePos;πuse std::collections::HashMap;πuse std::fmt::Debug;πuse std::fmt::Debug;π
MacrosΒ§
- get_
span π
StructsΒ§
- Attribute
Comment πMapper - Helper struct to map attributes to their associated comments in function headers.
- Attribute
Info π - Decision π
EnumsΒ§
- Attribute
Kind π - BinOp
Group π - Member
OrCall πArgs
TraitsΒ§
- BinOp
Ext π
FunctionsΒ§
- assignment_
member_ πdepth - Counts member links in an assignment RHS, through calls and indexes.
- call_
chain_ πcontains_ options - get_
callee_ πhead_ size - Calculates the size the calleeβs βhead,β excluding its arguments.
- has_
complex_ πsuccessor - is_
binary_ πexpr - is_call π
- is_
call_ πchain - is_
call_ πwith_ named_ args - Returns true if this is a call with named arguments (struct-style syntax).
Used to determine if
.fieldafter such a call should avoid breaking. E.g.,_lzSend({_dstEid: x, ...}).guidβ true (named args call) E.g.,someFunc(a, b).fieldβ false (positional args) - is_
call_ πwith_ opts_ and_ args - item_
needs_ πiso - Returns
trueif the item needs an isolated line break. - stmt_
needs_ πsemi
Type AliasesΒ§
- Attribute
Comment πMap