Struct EXL

Source
pub struct EXL {
    pub version: i32,
    pub entries: Vec<(String, i32)>,
}
Expand description

Represents an Excel List.

Fields§

§version: i32

The version of the list.

§entries: Vec<(String, i32)>

The entries of the list.

Implementations§

Source§

impl EXL

Source

pub fn from_existing(buffer: ByteSpan<'_>) -> Option<EXL>

Initializes EXL from an existing list.

Source

pub fn write_to_buffer(&self) -> Option<ByteBuffer>

Source

pub fn contains(&self, key: &str) -> bool

Checks whether or not the list contains a key.

§Example
let exl = EXL::from_existing(&exl_file).unwrap();
exl.contains("Foo");

Auto Trait Implementations§

§

impl Freeze for EXL

§

impl RefUnwindSafe for EXL

§

impl Send for EXL

§

impl Sync for EXL

§

impl Unpin for EXL

§

impl UnwindSafe for EXL

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.