pub struct NamedVariable { /* private fields */ }
Expand description
An element that has both a Name and a Type
Implementations§
Source§impl NamedVariable
impl NamedVariable
pub fn new(name: String, ty: PrimitiveType) -> Self
Sourcepub fn variable_type(&self) -> PrimitiveType
pub fn variable_type(&self) -> PrimitiveType
Returns the type of the field
Trait Implementations§
Source§impl Clone for NamedVariable
impl Clone for NamedVariable
Source§fn clone(&self) -> NamedVariable
fn clone(&self) -> NamedVariable
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 NamedVariable
impl Debug for NamedVariable
Source§impl PartialEq for NamedVariable
impl PartialEq for NamedVariable
impl StructuralPartialEq for NamedVariable
Auto Trait Implementations§
impl Freeze for NamedVariable
impl RefUnwindSafe for NamedVariable
impl Send for NamedVariable
impl Sync for NamedVariable
impl Unpin for NamedVariable
impl UnwindSafe for NamedVariable
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