Struct assembly_fdb::core::loader::SchemaLoader

source ·
pub struct SchemaLoader<'a, T, C> { /* private fields */ }
Expand description

Structure to load a schema from some encapsulated stream

Implementations§

source§

impl<'a, T, C> SchemaLoader<'a, T, C>
where T: BufRead + Seek, C: LoaderConfig,

source

pub fn open(inner: &'a mut T, config: C) -> Self

Create a new loader from the given reader

source

pub fn try_load_row(&mut self, header: FDBRowHeader) -> FileResult<Row>

Try to load a row

source

pub fn try_load_bucket(&mut self, header: FDBBucketHeader) -> FileResult<Bucket>

Try to load a bucket

source

pub fn try_load_column(&mut self, header: FDBColumnHeader) -> FileResult<Column>

Try to load a column

source

pub fn try_load_table_def( &mut self, header: FDBTableDefHeader, ) -> FileResult<TableDef>

Try to load a table definition

source

pub fn try_load_table_data( &mut self, header: FDBTableDataHeader, ) -> FileResult<TableData>

Try to load table data

source

pub fn try_load_table(&mut self, header: FDBTableHeader) -> FileResult<Table>

Try to load a table

source

pub fn try_load_schema(&mut self) -> FileResult<Schema>

Try to load a schema

Auto Trait Implementations§

§

impl<'a, T, C> Freeze for SchemaLoader<'a, T, C>
where C: Freeze,

§

impl<'a, T, C> RefUnwindSafe for SchemaLoader<'a, T, C>

§

impl<'a, T, C> Send for SchemaLoader<'a, T, C>
where C: Send, T: Send,

§

impl<'a, T, C> Sync for SchemaLoader<'a, T, C>
where C: Sync, T: Sync,

§

impl<'a, T, C> Unpin for SchemaLoader<'a, T, C>
where C: Unpin,

§

impl<'a, T, C> !UnwindSafe for SchemaLoader<'a, T, C>

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>,

§

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>,

§

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.