pub enum ValidationCode {
Binding,
Data,
Asset,
Glyph,
Collision,
Overflow,
Dpi,
Capability,
FontEmbedding,
Accessibility,
Contract,
Budget,
}Expand description
Stable validation/preflight condition.
Variants§
Binding
Binding/condition/repeat expression is invalid.
Data
Typed input does not satisfy its structural or declared data contract.
Asset
Referenced asset is absent or invalid.
Glyph
Font/glyph layout cannot be preserved.
Collision
Resolved elements overlap.
Overflow
Visual bounds leave the page.
Dpi
Effective raster resolution is below policy.
Capability
Requested exporter cannot preserve an element.
FontEmbedding
Editable PDF font embedding is not configured.
Accessibility
Required accessibility metadata is unavailable.
Contract
A generic schema/data/layout invariant failed.
Budget
Diagnostic/comparison budget was exhausted.
Trait Implementations§
Source§impl Clone for ValidationCode
impl Clone for ValidationCode
Source§fn clone(&self) -> ValidationCode
fn clone(&self) -> ValidationCode
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 ValidationCode
Source§impl Debug for ValidationCode
impl Debug for ValidationCode
Source§impl<'de> Deserialize<'de> for ValidationCode
impl<'de> Deserialize<'de> for ValidationCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ValidationCode
Source§impl Ord for ValidationCode
impl Ord for ValidationCode
Source§fn cmp(&self, other: &ValidationCode) -> Ordering
fn cmp(&self, other: &ValidationCode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ValidationCode
impl PartialEq for ValidationCode
Source§impl PartialOrd for ValidationCode
impl PartialOrd for ValidationCode
Source§impl Serialize for ValidationCode
impl Serialize for ValidationCode
impl StructuralPartialEq for ValidationCode
Auto Trait Implementations§
impl Freeze for ValidationCode
impl RefUnwindSafe for ValidationCode
impl Send for ValidationCode
impl Sync for ValidationCode
impl Unpin for ValidationCode
impl UnsafeUnpin for ValidationCode
impl UnwindSafe for ValidationCode
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.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.