Struct irox_types::NamedVariable
source · 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 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 NamedVariable
impl Debug for NamedVariable
source§impl PartialEq for NamedVariable
impl PartialEq for NamedVariable
source§fn eq(&self, other: &NamedVariable) -> bool
fn eq(&self, other: &NamedVariable) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)