[][src]Struct pcd_rs::seq_writer::SeqWriterBuilder

pub struct SeqWriterBuilder<Record, Kind> where
    Kind: SchemaKind
{ /* fields omitted */ }

A builder type that builds SeqWriter.

Methods

impl<Record> SeqWriterBuilder<Record, TypedSchema> where
    Record: PCDRecordWrite
[src]

pub fn new(
    width: u64,
    height: u64,
    viewpoint: ViewPoint,
    data_kind: DataKind
) -> Fallible<Self>
[src]

Create new SeqWriterBuilder that stores header data.

impl SeqWriterBuilder<UntypedRecord, UntypedSchema>[src]

pub fn new<Name, Spec>(
    width: u64,
    height: u64,
    viewpoint: ViewPoint,
    data_kind: DataKind,
    spec: Spec
) -> Fallible<Self> where
    Name: Borrow<str>,
    Spec: Borrow<[(Name, ValueKind, usize)]>, 
[src]

Create new SeqWriterBuilder that stores header data.

Trait Implementations

impl<Record, Kind> SeqWriterBuilderEx<Record, Kind> for SeqWriterBuilder<Record, Kind> where
    Kind: SchemaKind
[src]

fn from_writer<W: Write + Seek>(
    self,
    writer: W
) -> Fallible<SeqWriter<W, Record, Kind>>
[src]

Builds new SeqWriter object from a writer. The writer must implement both Write and Write traits.

fn create<P: AsRef<Path>>(
    self,
    path: P
) -> Fallible<SeqWriter<BufWriter<File>, Record, Kind>>
[src]

Builds new SeqWriter by creating a new file.

Auto Trait Implementations

impl<Record, Kind> Send for SeqWriterBuilder<Record, Kind> where
    Kind: Send,
    Record: Send

impl<Record, Kind> Unpin for SeqWriterBuilder<Record, Kind> where
    Kind: Unpin,
    Record: Unpin

impl<Record, Kind> Sync for SeqWriterBuilder<Record, Kind> where
    Kind: Sync,
    Record: Sync

impl<Record, Kind> UnwindSafe for SeqWriterBuilder<Record, Kind> where
    Kind: UnwindSafe,
    Record: UnwindSafe

impl<Record, Kind> RefUnwindSafe for SeqWriterBuilder<Record, Kind> where
    Kind: RefUnwindSafe,
    Record: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]