Enum Field

Source
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),
}
Available on crate feature 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§

Source§

impl Field

Source

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

Source

pub fn as_string(&self) -> Option<&SeString>

Optionally returns references to the inner fields if this is a Field::String, otherwise None

Source

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

Source

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

Source

pub fn as_bool(&self) -> Option<&bool>

Optionally returns references to the inner fields if this is a Field::Bool, otherwise None

Source

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

Source

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

Source

pub fn as_i8(&self) -> Option<&i8>

Optionally returns references to the inner fields if this is a Field::I8, otherwise None

Source

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

Source

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

Source

pub fn as_i16(&self) -> Option<&i16>

Optionally returns references to the inner fields if this is a Field::I16, otherwise None

Source

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

Source

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

Source

pub fn as_i32(&self) -> Option<&i32>

Optionally returns references to the inner fields if this is a Field::I32, otherwise None

Source

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

Source

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

Source

pub fn as_i64(&self) -> Option<&i64>

Optionally returns references to the inner fields if this is a Field::I64, otherwise None

Source

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

Source

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

Source

pub fn as_u8(&self) -> Option<&u8>

Optionally returns references to the inner fields if this is a Field::U8, otherwise None

Source

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

Source

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

Source

pub fn as_u16(&self) -> Option<&u16>

Optionally returns references to the inner fields if this is a Field::U16, otherwise None

Source

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

Source

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

Source

pub fn as_u32(&self) -> Option<&u32>

Optionally returns references to the inner fields if this is a Field::U32, otherwise None

Source

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

Source

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

Source

pub fn as_u64(&self) -> Option<&u64>

Optionally returns references to the inner fields if this is a Field::U64, otherwise None

Source

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

Source

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

Source

pub fn as_f32(&self) -> Option<&f32>

Optionally returns references to the inner fields if this is a Field::F32, otherwise None

Source

pub fn into_f32(self) -> Result<f32, Self>

Returns the inner fields if this is a Field::F32, otherwise returns back the enum in the Err case of the result

Trait Implementations§

Source§

impl Debug for Field

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Field

§

impl RefUnwindSafe for Field

§

impl Send for Field

§

impl Sync for Field

§

impl Unpin for Field

§

impl UnwindSafe for Field

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.