pub enum PrimitiveShape {
String,
U64,
I64,
F32,
F64,
Bool,
Null,
}
Expand description
Primitive types that can be found in a shape
Variants§
String
String type utf8 encoded
U64
unsigned 64 bit integer
I64
signed 64 bit integer
F32
floating point number
F64
double precision floating point number
Bool
boolean
Null
null
Implementations§
Source§impl PrimitiveShape
impl PrimitiveShape
Sourcepub fn matching_shape(&self, other: &PrimitiveShape) -> bool
pub fn matching_shape(&self, other: &PrimitiveShape) -> bool
returns true if two shapes are the same. Numeric types are considered the same.
Sourcepub fn get_highest_order_number(
type_a: &PrimitiveShape,
type_b: &PrimitiveShape,
) -> PrimitiveShape
pub fn get_highest_order_number( type_a: &PrimitiveShape, type_b: &PrimitiveShape, ) -> PrimitiveShape
returns the highest order number type
Trait Implementations§
Source§impl Clone for PrimitiveShape
impl Clone for PrimitiveShape
Source§fn clone(&self) -> PrimitiveShape
fn clone(&self) -> PrimitiveShape
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 PrimitiveShape
impl Debug for PrimitiveShape
Source§impl Default for PrimitiveShape
impl Default for PrimitiveShape
Source§fn default() -> PrimitiveShape
fn default() -> PrimitiveShape
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PrimitiveShape
impl<'de> Deserialize<'de> for PrimitiveShape
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<&PrimitiveShape> for usize
impl From<&PrimitiveShape> for usize
Source§fn from(shape: &PrimitiveShape) -> Self
fn from(shape: &PrimitiveShape) -> Self
Converts to this type from the input type.
Source§impl From<&PrimitiveValue> for PrimitiveShape
impl From<&PrimitiveValue> for PrimitiveShape
Source§fn from(val: &PrimitiveValue) -> Self
fn from(val: &PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl From<usize> for PrimitiveShape
impl From<usize> for PrimitiveShape
Source§impl PartialEq for PrimitiveShape
impl PartialEq for PrimitiveShape
Source§impl Serialize for PrimitiveShape
impl Serialize for PrimitiveShape
impl StructuralPartialEq for PrimitiveShape
Auto Trait Implementations§
impl Freeze for PrimitiveShape
impl RefUnwindSafe for PrimitiveShape
impl Send for PrimitiveShape
impl Sync for PrimitiveShape
impl Unpin for PrimitiveShape
impl UnwindSafe for PrimitiveShape
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