Struct nu_protocol::hir::NamedArguments [−][src]
pub struct NamedArguments {
pub named: IndexMap<String, NamedValue>,
}Fields
named: IndexMap<String, NamedValue>Implementations
impl NamedArguments[src]
impl NamedArguments[src]pub fn new() -> NamedArguments[src]
pub fn iter(&self) -> impl Iterator<Item = (&String, &NamedValue)>[src]
pub fn get(&self, name: &str) -> Option<&NamedValue>[src]
pub fn is_empty(&self) -> bool[src]
pub fn has_it_usage(&self) -> bool[src]
pub fn get_free_variables(
&self,
known_variables: &mut Vec<String>
) -> Vec<String>[src]
&self,
known_variables: &mut Vec<String>
) -> Vec<String>
impl NamedArguments[src]
impl NamedArguments[src]pub fn insert_switch(&mut self, name: impl Into<String>, switch: Option<Flag>)[src]
pub fn insert_optional(
&mut self,
name: impl Into<String>,
flag_span: Span,
expr: Option<SpannedExpression>
)[src]
&mut self,
name: impl Into<String>,
flag_span: Span,
expr: Option<SpannedExpression>
)
pub fn insert_mandatory(
&mut self,
name: impl Into<String>,
flag_span: Span,
expr: SpannedExpression
)[src]
&mut self,
name: impl Into<String>,
flag_span: Span,
expr: SpannedExpression
)
pub fn switch_present(&self, switch: &str) -> bool[src]
Trait Implementations
impl Clone for NamedArguments[src]
impl Clone for NamedArguments[src]fn clone(&self) -> NamedArguments[src]
fn clone(&self) -> NamedArguments[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for NamedArguments[src]
impl Debug for NamedArguments[src]impl Default for NamedArguments[src]
impl Default for NamedArguments[src]fn default() -> NamedArguments[src]
fn default() -> NamedArguments[src]Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for NamedArguments[src]
impl<'de> Deserialize<'de> for NamedArguments[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
impl Hash for NamedArguments[src]
impl Hash for NamedArguments[src]impl Ord for NamedArguments[src]
impl Ord for NamedArguments[src]fn cmp(&self, other: &NamedArguments) -> Ordering[src]
fn cmp(&self, other: &NamedArguments) -> Ordering[src]Compare two dictionaries for ordering
impl PartialEq<NamedArguments> for NamedArguments[src]
impl PartialEq<NamedArguments> for NamedArguments[src]fn eq(&self, other: &NamedArguments) -> bool[src]
fn eq(&self, other: &NamedArguments) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &NamedArguments) -> bool[src]
fn ne(&self, other: &NamedArguments) -> bool[src]This method tests for !=.
impl PartialOrd<NamedArguments> for NamedArguments[src]
impl PartialOrd<NamedArguments> for NamedArguments[src]fn partial_cmp(&self, other: &NamedArguments) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &NamedArguments) -> Option<Ordering>[src]Compare two dictionaries for sort ordering
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl PrettyDebugWithSource for NamedArguments[src]
impl PrettyDebugWithSource for NamedArguments[src]fn refined_pretty_debug(
&self,
refine: PrettyDebugRefineKind,
source: &str
) -> DebugDocBuilder[src]
&self,
refine: PrettyDebugRefineKind,
source: &str
) -> DebugDocBuilder
fn pretty_debug(&self, source: &str) -> DebugDocBuilder[src]
fn debug(&self, source: impl Into<Text>) -> String where
Self: Clone, [src]
Self: Clone,
fn debuggable(self, source: impl Into<Text>) -> DebuggableWithSource<Self>[src]
impl Serialize for NamedArguments[src]
impl Serialize for NamedArguments[src]impl Eq for NamedArguments[src]
impl StructuralEq for NamedArguments[src]
impl StructuralPartialEq for NamedArguments[src]
Auto Trait Implementations
impl RefUnwindSafe for NamedArguments
impl Send for NamedArguments
impl Sync for NamedArguments
impl Unpin for NamedArguments
impl UnwindSafe for NamedArguments
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]pub fn equivalent(&self, key: &K) -> bool[src]
pub fn equivalent(&self, key: &K) -> bool[src]Compare self to key and return true if they are equal.
impl<T> SpannedItem for T[src]
impl<T> SpannedItem for T[src]impl<T> TaggedItem for T[src]
impl<T> TaggedItem for T[src]impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,