pub enum Field {
String(SeString),
Bool(bool),
I8(i8),
I16(i16),
I32(i32),
I64(i64),
U8(u8),
U16(u16),
U32(u32),
U64(u64),
F32(f32),
}
excel
only.Expand description
A single field from an Excel database.
Variants
String(SeString)
Bool(bool)
I8(i8)
I16(i16)
I32(i32)
I64(i64)
U8(u8)
U16(u16)
U32(u32)
U64(u64)
F32(f32)
Implementations
sourceimpl Field
impl Field
sourcepub fn as_string_mut(&mut self) -> Option<&mut SeString>
pub fn as_string_mut(&mut self) -> Option<&mut SeString>
Optionally returns mutable references to the inner fields if this is a Field::String
, otherwise None
sourcepub fn as_string(&self) -> Option<&SeString>
pub fn as_string(&self) -> Option<&SeString>
Optionally returns references to the inner fields if this is a Field::String
, otherwise None
sourcepub fn into_string(self) -> Result<SeString, Self>
pub fn into_string(self) -> Result<SeString, Self>
Returns the inner fields if this is a Field::String
, otherwise returns back the enum in the Err
case of the result
sourcepub fn as_bool_mut(&mut self) -> Option<&mut bool>
pub fn as_bool_mut(&mut self) -> Option<&mut bool>
Optionally returns mutable references to the inner fields if this is a Field::Bool
, otherwise None
sourcepub fn as_bool(&self) -> Option<&bool>
pub fn as_bool(&self) -> Option<&bool>
Optionally returns references to the inner fields if this is a Field::Bool
, otherwise None
sourcepub fn into_bool(self) -> Result<bool, Self>
pub fn into_bool(self) -> Result<bool, Self>
Returns the inner fields if this is a Field::Bool
, otherwise returns back the enum in the Err
case of the result
sourcepub fn as_i8_mut(&mut self) -> Option<&mut i8>
pub fn as_i8_mut(&mut self) -> Option<&mut i8>
Optionally returns mutable references to the inner fields if this is a Field::I8
, otherwise None
sourcepub fn as_i8(&self) -> Option<&i8>
pub fn as_i8(&self) -> Option<&i8>
Optionally returns references to the inner fields if this is a Field::I8
, otherwise None
sourcepub fn into_i8(self) -> Result<i8, Self>
pub fn into_i8(self) -> Result<i8, Self>
Returns the inner fields if this is a Field::I8
, otherwise returns back the enum in the Err
case of the result
sourcepub fn as_i16_mut(&mut self) -> Option<&mut i16>
pub fn as_i16_mut(&mut self) -> Option<&mut i16>
Optionally returns mutable references to the inner fields if this is a Field::I16
, otherwise None
sourcepub fn as_i16(&self) -> Option<&i16>
pub fn as_i16(&self) -> Option<&i16>
Optionally returns references to the inner fields if this is a Field::I16
, otherwise None
sourcepub fn into_i16(self) -> Result<i16, Self>
pub fn into_i16(self) -> Result<i16, Self>
Returns the inner fields if this is a Field::I16
, otherwise returns back the enum in the Err
case of the result
sourcepub fn as_i32_mut(&mut self) -> Option<&mut i32>
pub fn as_i32_mut(&mut self) -> Option<&mut i32>
Optionally returns mutable references to the inner fields if this is a Field::I32
, otherwise None
sourcepub fn as_i32(&self) -> Option<&i32>
pub fn as_i32(&self) -> Option<&i32>
Optionally returns references to the inner fields if this is a Field::I32
, otherwise None
sourcepub fn into_i32(self) -> Result<i32, Self>
pub fn into_i32(self) -> Result<i32, Self>
Returns the inner fields if this is a Field::I32
, otherwise returns back the enum in the Err
case of the result
sourcepub fn as_i64_mut(&mut self) -> Option<&mut i64>
pub fn as_i64_mut(&mut self) -> Option<&mut i64>
Optionally returns mutable references to the inner fields if this is a Field::I64
, otherwise None
sourcepub fn as_i64(&self) -> Option<&i64>
pub fn as_i64(&self) -> Option<&i64>
Optionally returns references to the inner fields if this is a Field::I64
, otherwise None
sourcepub fn into_i64(self) -> Result<i64, Self>
pub fn into_i64(self) -> Result<i64, Self>
Returns the inner fields if this is a Field::I64
, otherwise returns back the enum in the Err
case of the result
sourcepub fn as_u8_mut(&mut self) -> Option<&mut u8>
pub fn as_u8_mut(&mut self) -> Option<&mut u8>
Optionally returns mutable references to the inner fields if this is a Field::U8
, otherwise None
sourcepub fn as_u8(&self) -> Option<&u8>
pub fn as_u8(&self) -> Option<&u8>
Optionally returns references to the inner fields if this is a Field::U8
, otherwise None
sourcepub fn into_u8(self) -> Result<u8, Self>
pub fn into_u8(self) -> Result<u8, Self>
Returns the inner fields if this is a Field::U8
, otherwise returns back the enum in the Err
case of the result
sourcepub fn as_u16_mut(&mut self) -> Option<&mut u16>
pub fn as_u16_mut(&mut self) -> Option<&mut u16>
Optionally returns mutable references to the inner fields if this is a Field::U16
, otherwise None
sourcepub fn as_u16(&self) -> Option<&u16>
pub fn as_u16(&self) -> Option<&u16>
Optionally returns references to the inner fields if this is a Field::U16
, otherwise None
sourcepub fn into_u16(self) -> Result<u16, Self>
pub fn into_u16(self) -> Result<u16, Self>
Returns the inner fields if this is a Field::U16
, otherwise returns back the enum in the Err
case of the result
sourcepub fn as_u32_mut(&mut self) -> Option<&mut u32>
pub fn as_u32_mut(&mut self) -> Option<&mut u32>
Optionally returns mutable references to the inner fields if this is a Field::U32
, otherwise None
sourcepub fn as_u32(&self) -> Option<&u32>
pub fn as_u32(&self) -> Option<&u32>
Optionally returns references to the inner fields if this is a Field::U32
, otherwise None
sourcepub fn into_u32(self) -> Result<u32, Self>
pub fn into_u32(self) -> Result<u32, Self>
Returns the inner fields if this is a Field::U32
, otherwise returns back the enum in the Err
case of the result
sourcepub fn as_u64_mut(&mut self) -> Option<&mut u64>
pub fn as_u64_mut(&mut self) -> Option<&mut u64>
Optionally returns mutable references to the inner fields if this is a Field::U64
, otherwise None
sourcepub fn as_u64(&self) -> Option<&u64>
pub fn as_u64(&self) -> Option<&u64>
Optionally returns references to the inner fields if this is a Field::U64
, otherwise None
sourcepub fn into_u64(self) -> Result<u64, Self>
pub fn into_u64(self) -> Result<u64, Self>
Returns the inner fields if this is a Field::U64
, otherwise returns back the enum in the Err
case of the result
sourcepub fn as_f32_mut(&mut self) -> Option<&mut f32>
pub fn as_f32_mut(&mut self) -> Option<&mut f32>
Optionally returns mutable references to the inner fields if this is a Field::F32
, otherwise None