pub struct RelationshipUse {
pub keyword_span: ExprSpan,
pub path: Vec<(String, ExprSpan)>,
pub arguments: Vec<NamedArgument>,
pub opening_comments: Vec<Comment>,
pub leading_comment: Option<Comment>,
pub doc_comment: Option<String>,
pub trailing_line_comment: Option<Comment>,
pub blank_line_before: bool,
pub span: ExprSpan,
}Expand description
Fields§
§keyword_span: ExprSpanThe relationship keyword’s span, excluding any preceding documentation.
path: Vec<(String, ExprSpan)>Unresolved callee path segments and their spans.
arguments: Vec<NamedArgument>Named cell arguments in source order.
opening_comments: Vec<Comment>Every comment in the opening-brace gap when this use is the first body item.
Empty for a later item; its ordinary sibling trivia uses leading_comment instead.
leading_comment: Option<Comment>A recovered leading comment.
doc_comment: Option<String>A leading documentation comment.
trailing_line_comment: Option<Comment>A comment on the declaration’s last source line.
blank_line_before: boolWhether a blank line precedes this declaration.
span: ExprSpanThe whole declaration’s span.
Trait Implementations§
Source§impl Clone for RelationshipUse
impl Clone for RelationshipUse
Auto Trait Implementations§
impl !Send for RelationshipUse
impl !Sync for RelationshipUse
impl Freeze for RelationshipUse
impl RefUnwindSafe for RelationshipUse
impl Unpin for RelationshipUse
impl UnsafeUnpin for RelationshipUse
impl UnwindSafe for RelationshipUse
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