pub struct Variables { /* private fields */ }Expand description
Collection of variables.
Implementations§
Source§impl Variables
impl Variables
Sourcepub fn get_mut(&mut self, name: &str) -> Option<&mut Variable>
pub fn get_mut(&mut self, name: &str) -> Option<&mut Variable>
Get a mutable reference to a variable by name.
Sourcepub fn get_by_index(&self, index: usize) -> Option<&Variable>
pub fn get_by_index(&self, index: usize) -> Option<&Variable>
Get a variable by index.
Sourcepub fn coordinates(&self) -> impl Iterator<Item = &Variable>
pub fn coordinates(&self) -> impl Iterator<Item = &Variable>
Get coordinate variables.
Sourcepub fn data_variables(&self) -> impl Iterator<Item = &Variable>
pub fn data_variables(&self) -> impl Iterator<Item = &Variable>
Get data variables (non-coordinate).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Variables
impl<'de> Deserialize<'de> for Variables
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 FromIterator<Variable> for Variables
impl FromIterator<Variable> for Variables
Source§impl<'a> IntoIterator for &'a Variables
impl<'a> IntoIterator for &'a Variables
Source§impl IntoIterator for Variables
impl IntoIterator for Variables
Auto Trait Implementations§
impl Freeze for Variables
impl RefUnwindSafe for Variables
impl Send for Variables
impl Sync for Variables
impl Unpin for Variables
impl UnsafeUnpin for Variables
impl UnwindSafe for Variables
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