[][src]Struct s25::S25Writer

pub struct S25Writer<A = File> where
    A: Write
{ /* fields omitted */ }

A writer for .S25 format.

Implementations

impl S25Writer[src]

pub fn create<P: AsRef<Path>>(path: P) -> Result<Self>[src]

Creates a S25 writer.

impl<T> S25Writer<T> where
    T: Write + Seek
[src]

pub fn write(&mut self) -> Result<()>[src]

Writes an S25 archive.

pub fn into_inner(self) -> Result<T, IntoInnerError<BufWriter<T>>>[src]

Unwraps the S25Writer and returns the underlying writer.

impl<T> S25Writer<T> where
    T: Write
[src]

pub fn add_entry(&mut self, entry_no: i32, image: &S25Image) -> Result<()>[src]

Adds an image entry to an S25 archive.

Trait Implementations

impl<T> From<T> for S25Writer<T> where
    T: Write
[src]

Auto Trait Implementations

impl<A> RefUnwindSafe for S25Writer<A> where
    A: RefUnwindSafe

impl<A> Send for S25Writer<A> where
    A: Send

impl<A> Sync for S25Writer<A> where
    A: Sync

impl<A> Unpin for S25Writer<A> where
    A: Unpin

impl<A> UnwindSafe for S25Writer<A> where
    A: UnwindSafe

Blanket Implementations

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

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.