pub enum XCellTyped {
Boolean(Box<BooleanDescription>),
Integer(Box<IntegerDescription>),
Decimal(Box<DecimalDescription>),
String(Box<StringDescription>),
Time(Box<TimeDescription>),
Color(Box<ColorDescription>),
Enumerate(Box<EnumerateDescription>),
Array(Box<ArrayDescription>),
Vector(Box<VectorDescription>),
}Variants§
Boolean(Box<BooleanDescription>)
Integer(Box<IntegerDescription>)
Decimal(Box<DecimalDescription>)
String(Box<StringDescription>)
Time(Box<TimeDescription>)
Color(Box<ColorDescription>)
Enumerate(Box<EnumerateDescription>)
Array(Box<ArrayDescription>)
Vector(Box<VectorDescription>)
Implementations§
Source§impl XCellTyped
impl XCellTyped
pub fn as_enumerate(&self) -> Option<&EnumerateDescription>
pub fn mut_enumerate(&mut self) -> Option<&mut EnumerateDescription>
pub fn is_enumerate(&self) -> bool
Source§impl XCellTyped
impl XCellTyped
pub fn as_integer(&self) -> Option<&IntegerDescription>
pub fn is_integer(&self) -> bool
Source§impl XCellTyped
impl XCellTyped
pub fn parse(input: &str, info: &TypeMetaInfo) -> Self
Source§impl XCellTyped
impl XCellTyped
pub fn parse_cell(&self, cell: &DataType) -> XResult<XCellValue>
Trait Implementations§
Source§impl Clone for XCellTyped
impl Clone for XCellTyped
Source§fn clone(&self) -> XCellTyped
fn clone(&self) -> XCellTyped
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for XCellTyped
impl Debug for XCellTyped
Source§impl Default for XCellTyped
impl Default for XCellTyped
Source§impl<'de> Deserialize<'de> for XCellTyped
impl<'de> Deserialize<'de> for XCellTyped
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 Display for XCellTyped
impl Display for XCellTyped
Source§impl From<ArrayDescription> for XCellTyped
impl From<ArrayDescription> for XCellTyped
Source§fn from(value: ArrayDescription) -> Self
fn from(value: ArrayDescription) -> Self
Converts to this type from the input type.
Source§impl From<BooleanDescription> for XCellTyped
impl From<BooleanDescription> for XCellTyped
Source§fn from(value: BooleanDescription) -> Self
fn from(value: BooleanDescription) -> Self
Converts to this type from the input type.
Source§impl From<EnumerateDescription> for XCellTyped
impl From<EnumerateDescription> for XCellTyped
Source§fn from(value: EnumerateDescription) -> Self
fn from(value: EnumerateDescription) -> Self
Converts to this type from the input type.
Source§impl From<IntegerDescription> for XCellTyped
impl From<IntegerDescription> for XCellTyped
Source§fn from(desc: IntegerDescription) -> Self
fn from(desc: IntegerDescription) -> Self
Converts to this type from the input type.
Source§impl From<StringDescription> for XCellTyped
impl From<StringDescription> for XCellTyped
Source§fn from(value: StringDescription) -> Self
fn from(value: StringDescription) -> Self
Converts to this type from the input type.
Source§impl From<VectorDescription> for XCellTyped
impl From<VectorDescription> for XCellTyped
Source§fn from(value: VectorDescription) -> Self
fn from(value: VectorDescription) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for XCellTyped
impl RefUnwindSafe for XCellTyped
impl Send for XCellTyped
impl Sync for XCellTyped
impl Unpin for XCellTyped
impl UnwindSafe for XCellTyped
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more