pub struct NamedVariables { /* private fields */ }
Implementations§
source§impl NamedVariables
impl NamedVariables
pub fn new(names: HashSet<Identifier>) -> Self
source§impl NamedVariables
impl NamedVariables
pub fn names(&self) -> impl Iterator<Item = &Identifier>
Trait Implementations§
source§impl AsMut<HashSet<Identifier>> for NamedVariables
impl AsMut<HashSet<Identifier>> for NamedVariables
source§fn as_mut(&mut self) -> &mut HashSet<Identifier>
fn as_mut(&mut self) -> &mut HashSet<Identifier>
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsRef<HashSet<Identifier>> for NamedVariables
impl AsRef<HashSet<Identifier>> for NamedVariables
source§fn as_ref(&self) -> &HashSet<Identifier>
fn as_ref(&self) -> &HashSet<Identifier>
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for NamedVariables
impl Clone for NamedVariables
source§fn clone(&self) -> NamedVariables
fn clone(&self) -> NamedVariables
Returns a copy 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 NamedVariables
impl Debug for NamedVariables
source§impl<'de> Deserialize<'de> for NamedVariables
impl<'de> Deserialize<'de> for NamedVariables
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 From<NamedVariables> for Variables
impl From<NamedVariables> for Variables
source§fn from(value: NamedVariables) -> Self
fn from(value: NamedVariables) -> Self
Converts to this type from the input type.
source§impl FromIterator<Identifier> for NamedVariables
impl FromIterator<Identifier> for NamedVariables
source§fn from_iter<T: IntoIterator<Item = Identifier>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = Identifier>>(iter: T) -> Self
Creates a value from an iterator. Read more
source§impl HasSourceSpan for NamedVariables
impl HasSourceSpan for NamedVariables
fn with_source_span(self, span: Span) -> Self
fn source_span(&self) -> Option<&Span>
fn set_source_span(&mut self, span: Span)
fn unset_source_span(&mut self)
fn has_source_span(&self) -> bool
Auto Trait Implementations§
impl Freeze for NamedVariables
impl RefUnwindSafe for NamedVariables
impl Send for NamedVariables
impl Sync for NamedVariables
impl Unpin for NamedVariables
impl UnwindSafe for NamedVariables
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)