pub struct AnnotationFlags(pub u32);Expand description
The /F flag word of an annotation (ISO 32000-1 §12.5.3, Table 165),
bit 1 being the lowest.
Tuple Fields§
§0: u32Implementations§
Source§impl AnnotationFlags
impl AnnotationFlags
Sourcepub fn bit(self, position: u32) -> bool
pub fn bit(self, position: u32) -> bool
Whether the flag at position (1-based, as Table 165 numbers them)
is set.
Covers ISO 32000-1 §12.5.3.
Bit 2: never show or print the annotation.
Sourcepub fn no_zoom(self) -> bool
pub fn no_zoom(self) -> bool
Bit 4: keep the appearance at its size whatever the magnification.
Sourcepub fn toggle_no_view(self) -> bool
pub fn toggle_no_view(self) -> bool
Bit 9: invert the NoView flag for certain events.
Sourcepub fn locked_contents(self) -> bool
pub fn locked_contents(self) -> bool
Bit 10: do not let the user change the annotation’s contents.
Trait Implementations§
Source§impl Clone for AnnotationFlags
impl Clone for AnnotationFlags
impl Copy for AnnotationFlags
Source§impl Debug for AnnotationFlags
impl Debug for AnnotationFlags
Source§impl Default for AnnotationFlags
impl Default for AnnotationFlags
impl Eq for AnnotationFlags
Source§impl PartialEq for AnnotationFlags
impl PartialEq for AnnotationFlags
impl StructuralPartialEq for AnnotationFlags
Auto Trait Implementations§
impl Freeze for AnnotationFlags
impl RefUnwindSafe for AnnotationFlags
impl Send for AnnotationFlags
impl Sync for AnnotationFlags
impl Unpin for AnnotationFlags
impl UnsafeUnpin for AnnotationFlags
impl UnwindSafe for AnnotationFlags
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