LanceOptionExt

Trait LanceOptionExt 

Source
pub trait LanceOptionExt<T> {
    // Required method
    fn expect_ok(self) -> Result<T>;
}

Required Methods§

Source

fn expect_ok(self) -> Result<T>

Unwraps an option, returning an internal error if the option is None.

Can be used when an option is expected to have a value.

Implementations on Foreign Types§

Source§

impl<T> LanceOptionExt<T> for Option<T>

Source§

fn expect_ok(self) -> Result<T>

Implementors§