#[repr(u8)]pub enum CellType {
UInt8 = 0,
UInt16 = 1,
UInt32 = 2,
UInt64 = 3,
Int8 = 4,
Int16 = 5,
Int32 = 6,
Int64 = 7,
Float32 = 8,
Float64 = 9,
}Expand description
Cell-type variants
Variants§
UInt8 = 0
UInt16 = 1
UInt32 = 2
UInt64 = 3
Int8 = 4
Int16 = 5
Int32 = 6
Int64 = 7
Float32 = 8
Float64 = 9
Implementations§
Source§impl CellType
impl CellType
Sourcepub fn iter() -> impl Iterator<Item = CellType>
pub fn iter() -> impl Iterator<Item = CellType>
Get an iterator over all the valid enumeration values.
Sourcepub fn is_integral(&self) -> bool
pub fn is_integral(&self) -> bool
Determine if self is integral or floating-point.
Sourcepub fn union(self, other: Self) -> Self
pub fn union(self, other: Self) -> Self
Select the CellType that can numerically contain both self and other.
Sourcepub fn can_fit_into(self, other: Self) -> bool
pub fn can_fit_into(self, other: Self) -> bool
Determine of self can fit within other.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CellType
impl<'de> Deserialize<'de> for CellType
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 Ord for CellType
impl Ord for CellType
Source§impl PartialOrd for CellType
impl PartialOrd for CellType
impl Copy for CellType
impl Eq for CellType
impl StructuralPartialEq for CellType
Auto Trait Implementations§
impl Freeze for CellType
impl RefUnwindSafe for CellType
impl Send for CellType
impl Sync for CellType
impl Unpin for CellType
impl UnwindSafe for CellType
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