pub struct PdfOutline { /* private fields */ }
Implementations§
Source§impl PdfOutline
impl PdfOutline
pub const OPEN: PdfOutline
pub const BOLD: PdfOutline
pub const ITALIC: PdfOutline
Sourcepub const fn empty() -> PdfOutline
pub const fn empty() -> PdfOutline
Returns an empty set of flags
Sourcepub const fn all() -> PdfOutline
pub const fn all() -> PdfOutline
Returns the set containing all flags.
Sourcepub fn from_bits(bits: i32) -> Option<PdfOutline>
pub fn from_bits(bits: i32) -> Option<PdfOutline>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: i32) -> PdfOutline
pub const fn from_bits_truncate(bits: i32) -> PdfOutline
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: i32) -> PdfOutline
pub const unsafe fn from_bits_unchecked(bits: i32) -> PdfOutline
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: PdfOutline) -> bool
pub const fn intersects(&self, other: PdfOutline) -> bool
Returns true
if there are flags common to both self
and other
.
Sourcepub const fn contains(&self, other: PdfOutline) -> bool
pub const fn contains(&self, other: PdfOutline) -> bool
Returns true
all of the flags in other
are contained within self
.
Sourcepub fn insert(&mut self, other: PdfOutline)
pub fn insert(&mut self, other: PdfOutline)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: PdfOutline)
pub fn remove(&mut self, other: PdfOutline)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: PdfOutline)
pub fn toggle(&mut self, other: PdfOutline)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: PdfOutline, value: bool)
pub fn set(&mut self, other: PdfOutline, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for PdfOutline
impl Binary for PdfOutline
Source§impl BitAnd for PdfOutline
impl BitAnd for PdfOutline
Source§fn bitand(self, other: PdfOutline) -> PdfOutline
fn bitand(self, other: PdfOutline) -> PdfOutline
Returns the intersection between the two sets of flags.
Source§type Output = PdfOutline
type Output = PdfOutline
&
operator.Source§impl BitAndAssign for PdfOutline
impl BitAndAssign for PdfOutline
Source§fn bitand_assign(&mut self, other: PdfOutline)
fn bitand_assign(&mut self, other: PdfOutline)
Disables all flags disabled in the set.
Source§impl BitOr for PdfOutline
impl BitOr for PdfOutline
Source§fn bitor(self, other: PdfOutline) -> PdfOutline
fn bitor(self, other: PdfOutline) -> PdfOutline
Returns the union of the two sets of flags.
Source§type Output = PdfOutline
type Output = PdfOutline
|
operator.Source§impl BitOrAssign for PdfOutline
impl BitOrAssign for PdfOutline
Source§fn bitor_assign(&mut self, other: PdfOutline)
fn bitor_assign(&mut self, other: PdfOutline)
Adds the set of flags.
Source§impl BitXor for PdfOutline
impl BitXor for PdfOutline
Source§fn bitxor(self, other: PdfOutline) -> PdfOutline
fn bitxor(self, other: PdfOutline) -> PdfOutline
Returns the left flags, but with all the right flags toggled.
Source§type Output = PdfOutline
type Output = PdfOutline
^
operator.Source§impl BitXorAssign for PdfOutline
impl BitXorAssign for PdfOutline
Source§fn bitxor_assign(&mut self, other: PdfOutline)
fn bitxor_assign(&mut self, other: PdfOutline)
Toggles the set of flags.
Source§impl Clone for PdfOutline
impl Clone for PdfOutline
Source§fn clone(&self) -> PdfOutline
fn clone(&self) -> PdfOutline
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PdfOutline
impl Debug for PdfOutline
Source§impl Extend<PdfOutline> for PdfOutline
impl Extend<PdfOutline> for PdfOutline
Source§fn extend<T: IntoIterator<Item = PdfOutline>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = PdfOutline>>(&mut self, iterator: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Source§impl FromIterator<PdfOutline> for PdfOutline
impl FromIterator<PdfOutline> for PdfOutline
Source§fn from_iter<T: IntoIterator<Item = PdfOutline>>(iterator: T) -> PdfOutline
fn from_iter<T: IntoIterator<Item = PdfOutline>>(iterator: T) -> PdfOutline
Source§impl Hash for PdfOutline
impl Hash for PdfOutline
Source§impl LowerHex for PdfOutline
impl LowerHex for PdfOutline
Source§impl Not for PdfOutline
impl Not for PdfOutline
Source§fn not(self) -> PdfOutline
fn not(self) -> PdfOutline
Returns the complement of this set of flags.
Source§type Output = PdfOutline
type Output = PdfOutline
!
operator.Source§impl Octal for PdfOutline
impl Octal for PdfOutline
Source§impl Ord for PdfOutline
impl Ord for PdfOutline
Source§fn cmp(&self, other: &PdfOutline) -> Ordering
fn cmp(&self, other: &PdfOutline) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for PdfOutline
impl PartialEq for PdfOutline
Source§impl PartialOrd for PdfOutline
impl PartialOrd for PdfOutline
Source§impl Sub for PdfOutline
impl Sub for PdfOutline
Source§fn sub(self, other: PdfOutline) -> PdfOutline
fn sub(self, other: PdfOutline) -> PdfOutline
Returns the set difference of the two sets of flags.
Source§type Output = PdfOutline
type Output = PdfOutline
-
operator.Source§impl SubAssign for PdfOutline
impl SubAssign for PdfOutline
Source§fn sub_assign(&mut self, other: PdfOutline)
fn sub_assign(&mut self, other: PdfOutline)
Disables all flags enabled in the set.