#[non_exhaustive]pub struct EditLimits {
pub max_list_bytes: usize,
pub max_edits: usize,
pub max_xml_bytes: usize,
pub max_image_bytes: usize,
pub package: Limits,
}Expand description
The limits of an edit list. Start from EditLimits::default and set the limits that
differ, so that a new limit breaks no caller.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_list_bytes: usizeThe largest edit list that [parse] reads, in bytes.
max_edits: usizeThe most edits of one list.
max_xml_bytes: usizeThe largest xml or expect value of one edit, in bytes.
max_image_bytes: usizeThe largest image file of an image edit, in bytes.
package: LimitsThe limits of the package and of its XML parts.
Trait Implementations§
Source§impl Clone for EditLimits
impl Clone for EditLimits
impl Copy for EditLimits
Source§impl Debug for EditLimits
impl Debug for EditLimits
Source§impl Default for EditLimits
impl Default for EditLimits
impl Eq for EditLimits
Source§impl PartialEq for EditLimits
impl PartialEq for EditLimits
impl StructuralPartialEq for EditLimits
Auto Trait Implementations§
impl Forget for EditLimits
impl Freeze for EditLimits
impl Move for EditLimits
impl RefUnwindSafe for EditLimits
impl Send for EditLimits
impl Sync for EditLimits
impl Unpin for EditLimits
impl UnsafeUnpin for EditLimits
impl UnwindSafe for EditLimits
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.