Skip to main content

ExcelValueRef

Enum ExcelValueRef 

Source
pub enum ExcelValueRef<'call> {
    Number(f64),
    Text(ExcelStr<'call>),
    Boolean(bool),
    Reference(ExcelReference<'call>),
    Error(ExcelError),
    Array(ExcelArrayView<'call>),
    Missing(ExcelMissing),
    Nil(ExcelNil),
    Integer(i32),
}
Expand description

A decoded, read-only Excel callback value.

ⓘ
use excel_api::ExcelValueRef;
fn require_send<T: Send>() {}
require_send::<ExcelValueRef<'static>>();
ⓘ
use excel_api::ExcelValueRef;
fn require_sync<T: Sync>() {}
require_sync::<ExcelValueRef<'static>>();
ⓘ
use excel_api::ExcelValueRef;
fn require_clone<T: Clone>() {}
require_clone::<ExcelValueRef<'static>>();

Variants§

§

Number(f64)

A binary floating-point scalar.

§

Text(ExcelStr<'call>)

A callback-borrowed UTF-16 string view.

§

Boolean(bool)

A Boolean scalar.

§

Reference(ExcelReference<'call>)

A callback-borrowed worksheet reference.

§

Error(ExcelError)

A controlled Excel worksheet error.

§

Array(ExcelArrayView<'call>)

A callback-borrowed two-dimensional array view.

§

Missing(ExcelMissing)

An omitted argument.

§

Nil(ExcelNil)

Excel’s distinct empty value.

§

Integer(i32)

Excel’s 32-bit integer scalar.

Implementations§

Source§

impl ExcelValueRef<'_>

Source

pub const fn kind_name(&self) -> &'static str

Returns a stable, human-readable name for this variant’s value kind.

Trait Implementations§

Source§

impl<'call> Debug for ExcelValueRef<'call>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'call> !Send for ExcelValueRef<'call>

§

impl<'call> !Sync for ExcelValueRef<'call>

§

impl<'call> Freeze for ExcelValueRef<'call>

§

impl<'call> RefUnwindSafe for ExcelValueRef<'call>

§

impl<'call> Unpin for ExcelValueRef<'call>

§

impl<'call> UnsafeUnpin for ExcelValueRef<'call>

§

impl<'call> UnwindSafe for ExcelValueRef<'call>

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.