pub struct ParseBudgets {
pub max_ifds: usize,
pub max_ifd_entries: usize,
pub max_tag_value_bytes: usize,
pub max_metadata_value_bytes: usize,
}Expand description
Budgets that bound TIFF IFD parsing allocations.
Fields§
§max_ifds: usizeMaximum number of IFDs to follow in a chain.
max_ifd_entries: usizeMaximum tag entries allowed in one IFD.
max_tag_value_bytes: usizeMaximum encoded value bytes allowed for one tag value.
max_metadata_value_bytes: usizeMaximum encoded value bytes allowed across all parsed tag values.
Trait Implementations§
Source§impl Clone for ParseBudgets
impl Clone for ParseBudgets
Source§fn clone(&self) -> ParseBudgets
fn clone(&self) -> ParseBudgets
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParseBudgets
Source§impl Debug for ParseBudgets
impl Debug for ParseBudgets
Source§impl Default for ParseBudgets
impl Default for ParseBudgets
impl Eq for ParseBudgets
Source§impl PartialEq for ParseBudgets
impl PartialEq for ParseBudgets
Source§fn eq(&self, other: &ParseBudgets) -> bool
fn eq(&self, other: &ParseBudgets) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ParseBudgets
Auto Trait Implementations§
impl Freeze for ParseBudgets
impl RefUnwindSafe for ParseBudgets
impl Send for ParseBudgets
impl Sync for ParseBudgets
impl Unpin for ParseBudgets
impl UnsafeUnpin for ParseBudgets
impl UnwindSafe for ParseBudgets
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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