pub struct NamespaceLeaf {
pub hash: String,
pub import_index: isize,
pub element: Binding,
}Expand description
Type for a namespace leaf
Fields§
§hash: String§import_index: isize§element: BindingImplementations§
Source§impl NamespaceLeaf
impl NamespaceLeaf
pub fn is_elided_binding(&self) -> bool
pub fn unwrap_elided_binding(&self) -> &String
pub fn is_constant_binding(&self) -> bool
pub fn unwrap_constant_binding(&self) -> &String
pub fn is_exp_binding(&self) -> bool
pub fn unwrap_exp_binding(&self) -> &RainlangDocument
pub fn is_quote_binding(&self) -> bool
pub fn unwrap_quote_binding(&self) -> &QuoteBindingItem
Trait Implementations§
Source§impl Clone for NamespaceLeaf
impl Clone for NamespaceLeaf
Source§fn clone(&self) -> NamespaceLeaf
fn clone(&self) -> NamespaceLeaf
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NamespaceLeaf
impl Debug for NamespaceLeaf
Source§impl<'de> Deserialize<'de> for NamespaceLeaf
impl<'de> Deserialize<'de> for NamespaceLeaf
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
Source§impl FromWasmAbi for NamespaceLeafwhere
Self: DeserializeOwned,
impl FromWasmAbi for NamespaceLeafwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for NamespaceLeafwhere
Self: Serialize,
impl IntoWasmAbi for NamespaceLeafwhere
Self: Serialize,
Source§impl OptionFromWasmAbi for NamespaceLeafwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for NamespaceLeafwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for NamespaceLeafwhere
Self: Serialize,
impl OptionIntoWasmAbi for NamespaceLeafwhere
Self: Serialize,
Source§impl PartialEq for NamespaceLeaf
impl PartialEq for NamespaceLeaf
Source§impl Serialize for NamespaceLeaf
impl Serialize for NamespaceLeaf
Source§impl Tsify for NamespaceLeaf
impl Tsify for NamespaceLeaf
impl StructuralPartialEq for NamespaceLeaf
Auto Trait Implementations§
impl Freeze for NamespaceLeaf
impl RefUnwindSafe for NamespaceLeaf
impl Send for NamespaceLeaf
impl Sync for NamespaceLeaf
impl Unpin for NamespaceLeaf
impl UnwindSafe for NamespaceLeaf
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.