Skip to main content

S25Writer

Struct S25Writer 

Source
pub struct S25Writer<A = File>
where A: Write,
{ /* private fields */ }
Expand description

A writer for .S25 format.

Implementations§

Source§

impl S25Writer

Source

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

Creates a S25 writer.

Source§

impl<T> S25Writer<T>
where T: Write + Seek,

Source

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

Writes an S25 archive.

Source

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

Unwraps the S25Writer and returns the underlying writer.

Source§

impl<T> S25Writer<T>
where T: Write,

Source

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

Adds an image entry to an S25 archive.

Trait Implementations§

Source§

impl<T> From<T> for S25Writer<T>
where T: Write,

Source§

fn from(t: T) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<A> Freeze for S25Writer<A>
where A: Freeze,

§

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> UnsafeUnpin for S25Writer<A>
where A: UnsafeUnpin,

§

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

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.