pub struct AuthoredItem {
pub role: AuthoredRole,
pub parent: Option<usize>,
pub label: SourceLabel,
pub cell: Option<CellSlot>,
pub relationship: Option<RelationshipSlot>,
pub method_index: Option<usize>,
pub requirement_name: Option<String>,
pub expression: Option<SourceLabel>,
}Expand description
Retains one authored node and its native slots without expanding included definitions.
Parent indices refer only to this definition’s authored item slice.
See OccurrenceOrigin::authored_items.
Fields§
§role: AuthoredRoleDistinguishes declaration, method, policy and invocation roles.
parent: Option<usize>Identifies the immediate authored parent in the same definition.
label: SourceLabelRetains the exact authored source owner and span.
cell: Option<CellSlot>Identifies the declared or governed local cell, where applicable.
relationship: Option<RelationshipSlot>Identifies the native relationship or inclusion group, where applicable.
method_index: Option<usize>Identifies an authored method before whole-method source specialization.
requirement_name: Option<String>Retains an explicit requirement name; unnamed requirements have no name.
expression: Option<SourceLabel>Retains the exact expression site independently of its enclosing authored item.
Trait Implementations§
Source§impl Clone for AuthoredItem
impl Clone for AuthoredItem
Auto Trait Implementations§
impl !Send for AuthoredItem
impl !Sync for AuthoredItem
impl Freeze for AuthoredItem
impl RefUnwindSafe for AuthoredItem
impl Unpin for AuthoredItem
impl UnsafeUnpin for AuthoredItem
impl UnwindSafe for AuthoredItem
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