pub struct VarCollection { /* private fields */ }Implementations§
Source§impl VarCollection
impl VarCollection
pub fn immutable_vars(&self) -> &Vec<VarDefinition>
pub fn system_vars(&self) -> &Vec<VarDefinition>
pub fn module_vars(&self) -> &Vec<VarDefinition>
Source§impl VarCollection
impl VarCollection
pub fn define(vars: Vec<VarDefinition>) -> Self
pub fn mark_vars_scope(&mut self)
pub fn value_dict(&self) -> ValueDict
pub fn merge(self, other: VarCollection) -> Self
pub fn merge_system(self, other: VarCollection) -> Self
Trait Implementations§
Source§impl Clone for VarCollection
impl Clone for VarCollection
Source§fn clone(&self) -> VarCollection
fn clone(&self) -> VarCollection
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 VarCollection
impl Debug for VarCollection
Source§impl Default for VarCollection
impl Default for VarCollection
Source§fn default() -> VarCollection
fn default() -> VarCollection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VarCollection
impl<'de> Deserialize<'de> for VarCollection
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<VarCollection> for OriginDict
impl From<VarCollection> for OriginDict
Source§fn from(value: VarCollection) -> Self
fn from(value: VarCollection) -> Self
Converts to this type from the input type.
Source§impl PartialEq for VarCollection
impl PartialEq for VarCollection
Source§impl Serialize for VarCollection
impl Serialize for VarCollection
impl StructuralPartialEq for VarCollection
Auto Trait Implementations§
impl Freeze for VarCollection
impl RefUnwindSafe for VarCollection
impl Send for VarCollection
impl Sync for VarCollection
impl Unpin for VarCollection
impl UnsafeUnpin for VarCollection
impl UnwindSafe for VarCollection
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