pub enum ContainerType {
Vector(Box<RType>),
Tuple(Vec<Box<RType>>),
Array(Box<RType>, usize),
}Expand description
Represents a container, like Vec
Contains more RTypes
Variants§
Trait Implementations§
Source§impl Debug for ContainerType
impl Debug for ContainerType
Source§impl PartialEq for ContainerType
impl PartialEq for ContainerType
Source§impl RTypeTrait for ContainerType
impl RTypeTrait for ContainerType
Source§fn from_typestr<T: AsRef<str>>(typestr: T) -> Result<Self, TypeError>where
Self: Sized,
fn from_typestr<T: AsRef<str>>(typestr: T) -> Result<Self, TypeError>where
Self: Sized,
Construct the RType from a string that contains type information i.e. “ &str “ Read more
Source§fn to_typestr(&self) -> String
fn to_typestr(&self) -> String
Conversions into type representation Read more
Source§fn to_typestr_no_ref(&self) -> String
fn to_typestr_no_ref(&self) -> String
get representation without references or lifetimes
strSource§fn to_typestr_no_life(&self) -> String
fn to_typestr_no_life(&self) -> String
get representation without lifetime
&strSource§fn collect_lifetimes(&self, into: &mut Vec<String>)
fn collect_lifetimes(&self, into: &mut Vec<String>)
collect lifetimes
Source§fn value_is_valid(&self, valuestr: &str) -> bool
fn value_is_valid(&self, valuestr: &str) -> bool
Value is valid - assume an input of (2,2,[2,3,4]) -> Tuple(NumType,NumType,Array|Vec) Read more
Source§fn get_breadth(&self, counter: usize) -> usize
fn get_breadth(&self, counter: usize) -> usize
Get nesting breadth
fn wrap_valuestr(&self, valuestr: &str) -> String
Source§fn can_match_as_key(&self) -> bool
fn can_match_as_key(&self) -> bool
Whether the type can be used as the key in a match expression, floats can not.
impl Eq for ContainerType
impl StructuralPartialEq for ContainerType
Auto Trait Implementations§
impl Freeze for ContainerType
impl RefUnwindSafe for ContainerType
impl Send for ContainerType
impl Sync for ContainerType
impl Unpin for ContainerType
impl UnwindSafe for ContainerType
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