Struct EscudeBinArchiveBuilder

Source
pub struct EscudeBinArchiveBuilder {}
Available on crate features escude and escude-arc only.
Expand description

Escu:de Archive Builder

Implementations§

Source§

impl EscudeBinArchiveBuilder

Source

pub const fn new() -> Self

Creates a new instance of EscudeBinArchiveBuilder

Trait Implementations§

Source§

impl Debug for EscudeBinArchiveBuilder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ScriptBuilder for EscudeBinArchiveBuilder

Source§

fn default_encoding(&self) -> Encoding

Returns the default encoding for the script.
Source§

fn default_archive_encoding(&self) -> Option<Encoding>

Returns the default encoding for the archive. If None, the default encoding should be used.
Source§

fn build_script( &self, data: Vec<u8>, _filename: &str, _encoding: Encoding, archive_encoding: Encoding, config: &ExtraConfig, _archive: Option<&Box<dyn Script>>, ) -> Result<Box<dyn Script>>

Builds a script from the given buffer. Read more
Source§

fn build_script_from_file( &self, filename: &str, _encoding: Encoding, archive_encoding: Encoding, config: &ExtraConfig, _archive: Option<&Box<dyn Script>>, ) -> Result<Box<dyn Script>>

Builds a script from a file. Read more
Source§

fn build_script_from_reader( &self, reader: Box<dyn ReadSeek>, _filename: &str, _encoding: Encoding, archive_encoding: Encoding, config: &ExtraConfig, _archive: Option<&Box<dyn Script>>, ) -> Result<Box<dyn Script>>

Builds a script from a reader. Read more
Source§

fn extensions(&self) -> &'static [&'static str]

Returns the extensions supported by this script builder.
Source§

fn script_type(&self) -> &'static ScriptType

Returns the script type associated with this builder.
Source§

fn is_this_format( &self, _filename: &str, buf: &[u8], buf_len: usize, ) -> Option<u8>

Checks if the given filename and buffer match this script format. Read more
Source§

fn is_archive(&self) -> bool

Returns true if this script is an archive.
Source§

fn create_archive( &self, filename: &str, files: &[&str], encoding: Encoding, config: &ExtraConfig, ) -> Result<Box<dyn Archive>>

Creates an archive with the given files. Read more
Source§

fn default_patched_encoding(&self) -> Encoding

Returns the default encoding for script files when patching scripts.
Source§

fn can_create_file(&self) -> bool

Returns true if this script type can create from a file directly.
Source§

fn create_file<'a>( &'a self, _filename: &'a str, _writer: Box<dyn WriteSeek + 'a>, _encoding: Encoding, _file_encoding: Encoding, _config: &ExtraConfig, ) -> Result<()>

Creates a new script file. Read more
Source§

fn create_file_filename( &self, filename: &str, output_filename: &str, encoding: Encoding, file_encoding: Encoding, config: &ExtraConfig, ) -> Result<()>

Creates a new script file with the given filename. Read more
Source§

fn is_image(&self) -> bool

Available on crate feature image only.
Returns true if this script is an image.
Source§

fn can_create_image_file(&self) -> bool

Available on crate feature image only.
Returns true if this script type can create from an image file directly.
Source§

fn create_image_file<'a>( &'a self, _data: ImageData, _writer: Box<dyn WriteSeek + 'a>, _options: &ExtraConfig, ) -> Result<()>

Available on crate feature image only.
Creates an image file from the given data. Read more
Source§

fn create_image_file_filename( &self, data: ImageData, filename: &str, options: &ExtraConfig, ) -> Result<()>

Available on crate feature image only.
Creates an image file from the given data to the specified filename. Read more

Auto Trait Implementations§

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> AnyDebug for T
where T: Debug + Any,

Source§

impl<T> ErasedDestructor for T
where T: 'static,