[−][src]Enum investments::xls::Cell
An enum to represent all different data types that can appear as a value in a worksheet cell
Variants
Int(i64)
Unsigned integer
Float(f64)
Float
String(String)
String
Bool(bool)
Boolean
Error(CellErrorType)
Error
Empty cell
Implementations
impl DataType
[src]
pub fn is_empty(&self) -> bool
[src]
Assess if datatype is empty
pub fn is_int(&self) -> bool
[src]
Assess if datatype is a int
pub fn is_float(&self) -> bool
[src]
Assess if datatype is a float
pub fn is_bool(&self) -> bool
[src]
Assess if datatype is a bool
pub fn is_string(&self) -> bool
[src]
Assess if datatype is a string
pub fn get_int(&self) -> Option<i64>
[src]
Try getting int value
pub fn get_float(&self) -> Option<f64>
[src]
Try getting float value
pub fn get_bool(&self) -> Option<bool>
[src]
Try getting bool value
pub fn get_string(&self) -> Option<&str>
[src]
Try getting string value
Trait Implementations
impl Clone for DataType
[src]
impl Debug for DataType
[src]
impl Default for DataType
[src]
impl<'de> Deserialize<'de> for DataType
[src]
fn deserialize<D>(
deserializer: D
) -> Result<DataType, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<DataType, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl Display for DataType
[src]
impl<'a> From<&'a str> for DataType
[src]
impl From<()> for DataType
[src]
impl From<CellErrorType> for DataType
[src]
fn from(v: CellErrorType) -> DataType
[src]
impl<T> From<Option<T>> for DataType where
DataType: From<T>,
[src]
DataType: From<T>,
impl From<String> for DataType
[src]
impl From<bool> for DataType
[src]
impl From<f64> for DataType
[src]
impl From<i64> for DataType
[src]
impl PartialEq<DataType> for DataType
[src]
impl PartialEq<bool> for DataType
[src]
impl PartialEq<f64> for DataType
[src]
impl PartialEq<i64> for DataType
[src]
impl PartialEq<str> for DataType
[src]
impl StructuralPartialEq for DataType
[src]
impl<'a> ToCellDeserializer<'a> for DataType
[src]
type Deserializer = DataTypeDeserializer<'a>
The deserializer.
fn to_cell_deserializer(&'a self, pos: (u32, u32)) -> DataTypeDeserializer<'a>
[src]
fn is_empty(&self) -> bool
[src]
Auto Trait Implementations
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnwindSafe for DataType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CellType for T where
T: Clone + PartialEq<T> + Default,
[src]
T: Clone + PartialEq<T> + Default,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
[src]
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,