[−][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]
pub 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]
pub 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]
pub fn eq(&self, other: &bool) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<f64> for DataType
[src]
pub fn eq(&self, other: &f64) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<i64> for DataType
[src]
pub fn eq(&self, other: &i64) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<str> for DataType
[src]
pub fn eq(&self, other: &str) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for DataType
[src]
impl<'a> ToCellDeserializer<'a> for DataType
[src]
type Deserializer = DataTypeDeserializer<'a>
The deserializer.
pub fn to_cell_deserializer(
&'a self,
pos: (u32, u32)
) -> DataTypeDeserializer<'a>
[src]
&'a self,
pos: (u32, u32)
) -> DataTypeDeserializer<'a>
pub fn is_empty(&self) -> bool
[src]
Auto Trait Implementations
impl RefUnwindSafe for DataType
[src]
impl Send for DataType
[src]
impl Sync for DataType
[src]
impl Unpin for DataType
[src]
impl UnwindSafe for DataType
[src]
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,
pub 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> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
[src]
pub fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
pub 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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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.
pub 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>,