pub struct BindingArg {
pub root: BindingRoot,
pub path: Box<str>,
}Expand description
An argument that names an immutable binding.
The extractor checks a local binding. For an import, the analysis
resolves the origin export and checks that it is a const with a literal
initializer (FunctionContractFacts::literal_consts), or an enum with
the member.
Fields§
§root: BindingRootWhere the root identifier of the argument comes from.
path: Box<str>The dot-separated static path.
- For
BindingRoot::Local: the binding name, then the enum member for an enum (Mode.Grid). - For
BindingRoot::Importof a named or default import: empty for a constant, else the enum member. - For
BindingRoot::Importof a namespace import: the export name, then the enum member.
Trait Implementations§
Source§impl Clone for BindingArg
impl Clone for BindingArg
Source§impl Debug for BindingArg
impl Debug for BindingArg
impl<'__de> Decode<'__de> for BindingArgwhere
'__de:,
impl Encode for BindingArg
impl Eq for BindingArg
Source§impl PartialEq for BindingArg
impl PartialEq for BindingArg
impl StructuralPartialEq for BindingArg
Auto Trait Implementations§
impl Forget for BindingArg
impl Freeze for BindingArg
impl Move for BindingArg
impl RefUnwindSafe for BindingArg
impl Send for BindingArg
impl Sync for BindingArg
impl Unpin for BindingArg
impl UnsafeUnpin for BindingArg
impl UnwindSafe for BindingArg
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DecodeOwned for Twhere
T: for<'de> Decode<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.