pub struct PortabilityDeclaration {
pub key: String,
pub value: Option<String>,
pub state: AssignmentState,
pub exported: bool,
pub participates: bool,
pub effective_value: Option<String>,
pub wins_lookup: bool,
}Expand description
A declaration as read by one dialect on a physical line.
Fields§
§key: StringLiteral key name, excluding any key quotes.
value: Option<String>Decoded literal value; None is a bare declaration.
state: AssignmentStateBare, empty or non-empty assignment state.
exported: boolWhether the declaration has an export prefix.
participates: boolWhether the declaration participates in effective key lookup.
effective_value: Option<String>Value this declaration contributes to effective lookup.
This includes BareKeys::Empty for bare declarations. It is None when
the declaration does not participate, or when a participating bare
declaration has no effective value. A declaration can carry a value
here without winning its key; see Self::wins_lookup.
wins_lookup: boolWhether this declaration wins its key’s effective lookup.
Trait Implementations§
Source§impl Clone for PortabilityDeclaration
impl Clone for PortabilityDeclaration
Source§impl Debug for PortabilityDeclaration
impl Debug for PortabilityDeclaration
impl Eq for PortabilityDeclaration
Source§impl PartialEq for PortabilityDeclaration
impl PartialEq for PortabilityDeclaration
impl StructuralPartialEq for PortabilityDeclaration
Auto Trait Implementations§
impl Freeze for PortabilityDeclaration
impl RefUnwindSafe for PortabilityDeclaration
impl Send for PortabilityDeclaration
impl Sync for PortabilityDeclaration
impl Unpin for PortabilityDeclaration
impl UnsafeUnpin for PortabilityDeclaration
impl UnwindSafe for PortabilityDeclaration
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