pub struct GifloadSourceOptions {
    pub n: i32,
    pub page: i32,
    pub flags: ForeignFlags,
    pub memory: bool,
    pub access: Access,
    pub fail_on: FailOn,
    pub revalidate: bool,
}
Expand description

Options for gifload_source operation

Fields§

§n: i32

n: i32 -> Number of pages to load, -1 for all min: -1, max: 100000, default: 1

§page: i32

page: i32 -> First page to load min: 0, max: 100000, default: 0

§flags: ForeignFlags

flags: ForeignFlags -> Flags for this file None -> VIPS_FOREIGN_NONE = 0 [DEFAULT] Partial -> VIPS_FOREIGN_PARTIAL = 1 Bigendian -> VIPS_FOREIGN_BIGENDIAN = 2 Sequential -> VIPS_FOREIGN_SEQUENTIAL = 4 All -> VIPS_FOREIGN_ALL = 7

§memory: bool

memory: bool -> Force open via memory default: false

§access: Access

access: Access -> Required access pattern for this file Random -> VIPS_ACCESS_RANDOM = 0 [DEFAULT] Sequential -> VIPS_ACCESS_SEQUENTIAL = 1 SequentialUnbuffered -> VIPS_ACCESS_SEQUENTIAL_UNBUFFERED = 2 Last -> VIPS_ACCESS_LAST = 3

§fail_on: FailOn

fail_on: FailOn -> Error level to fail on None -> VIPS_FAIL_ON_NONE = 0 [DEFAULT] Truncated -> VIPS_FAIL_ON_TRUNCATED = 1 Error -> VIPS_FAIL_ON_ERROR = 2 Warning -> VIPS_FAIL_ON_WARNING = 3 Last -> VIPS_FAIL_ON_LAST = 4

§revalidate: bool

revalidate: bool -> Don’t use a cached result for this operation default: false

Trait Implementations§

source§

impl Clone for GifloadSourceOptions

source§

fn clone(&self) -> GifloadSourceOptions

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for GifloadSourceOptions

source§

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

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

impl Default for GifloadSourceOptions

source§

fn default() -> Self

Returns the “default value” for a type. 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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.