#[non_exhaustive]pub enum LayerIntent {
View,
Design,
Export,
Multiple(Vec<String>),
Other(String),
}Expand description
/Intent on an OCG, declaring which audiences the layer is for.
PDF allows a single name or an array of names; an array becomes
LayerIntent::Multiple. Names other than View/Design/Export
are preserved verbatim under LayerIntent::Other.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
View
Default. Layer is meaningful for on-screen viewing.
Design
Layer represents structural design content (CAD drawings,
engineering layers, etc.). Some viewers ignore non-View
intents in interactive mode.
Export
Layer is intended for export workflows (data extraction, archiving).
Multiple(Vec<String>)
Multiple intents — array form.
Other(String)
An intent name not covered by the spec’s standard set.
Trait Implementations§
Source§impl Clone for LayerIntent
impl Clone for LayerIntent
Source§fn clone(&self) -> LayerIntent
fn clone(&self) -> LayerIntent
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 moreSource§impl Debug for LayerIntent
impl Debug for LayerIntent
impl Eq for LayerIntent
Source§impl PartialEq for LayerIntent
impl PartialEq for LayerIntent
impl StructuralPartialEq for LayerIntent
Auto Trait Implementations§
impl Freeze for LayerIntent
impl RefUnwindSafe for LayerIntent
impl Send for LayerIntent
impl Sync for LayerIntent
impl Unpin for LayerIntent
impl UnsafeUnpin for LayerIntent
impl UnwindSafe for LayerIntent
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<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