pub struct ArgFact {
pub raw: String,
pub provenance: Provenance,
pub scope: Option<PathScope>,
}Expand description
Per-argument provenance and path scope derived from the raw AST node.
Built by arg_fact; consumed by the floor walker (R295-F8) when
assembling CommandFact.args.
Fields§
§raw: StringBest-effort text representation (for display and DSL raw: matching).
provenance: ProvenanceHow statically bounded this argument is.
scope: Option<PathScope>Some(_) iff provenance == Literal. None otherwise.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ArgFact
impl<'de> Deserialize<'de> for ArgFact
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ArgFact
impl StructuralPartialEq for ArgFact
Auto Trait Implementations§
impl Freeze for ArgFact
impl RefUnwindSafe for ArgFact
impl Send for ArgFact
impl Sync for ArgFact
impl Unpin for ArgFact
impl UnsafeUnpin for ArgFact
impl UnwindSafe for ArgFact
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