Struct cairo::PdfOutline
source · [−]pub struct PdfOutline { /* private fields */ }Implementations
sourceimpl 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
sourceimpl Binary for PdfOutline
impl Binary for PdfOutline
sourceimpl BitAnd<PdfOutline> for PdfOutline
impl BitAnd<PdfOutline> for PdfOutline
sourcefn bitand(self, other: PdfOutline) -> PdfOutline
fn bitand(self, other: PdfOutline) -> PdfOutline
Returns the intersection between the two sets of flags.
type Output = PdfOutline
type Output = PdfOutline
& operator.sourceimpl BitAndAssign<PdfOutline> for PdfOutline
impl BitAndAssign<PdfOutline> for PdfOutline
sourcefn bitand_assign(&mut self, other: PdfOutline)
fn bitand_assign(&mut self, other: PdfOutline)
Disables all flags disabled in the set.
sourceimpl BitOr<PdfOutline> for PdfOutline
impl BitOr<PdfOutline> for PdfOutline
sourcefn bitor(self, other: PdfOutline) -> PdfOutline
fn bitor(self, other: PdfOutline) -> PdfOutline
Returns the union of the two sets of flags.
type Output = PdfOutline
type Output = PdfOutline
| operator.sourceimpl BitOrAssign<PdfOutline> for PdfOutline
impl BitOrAssign<PdfOutline> for PdfOutline
sourcefn bitor_assign(&mut self, other: PdfOutline)
fn bitor_assign(&mut self, other: PdfOutline)
Adds the set of flags.
sourceimpl BitXor<PdfOutline> for PdfOutline
impl BitXor<PdfOutline> for PdfOutline
sourcefn bitxor(self, other: PdfOutline) -> PdfOutline
fn bitxor(self, other: PdfOutline) -> PdfOutline
Returns the left flags, but with all the right flags toggled.
type Output = PdfOutline
type Output = PdfOutline
^ operator.sourceimpl BitXorAssign<PdfOutline> for PdfOutline
impl BitXorAssign<PdfOutline> for PdfOutline
sourcefn bitxor_assign(&mut self, other: PdfOutline)
fn bitxor_assign(&mut self, other: PdfOutline)
Toggles the set of flags.
sourceimpl Clone for PdfOutline
impl Clone for PdfOutline
sourcefn clone(&self) -> PdfOutline
fn clone(&self) -> PdfOutline
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for PdfOutline
impl Debug for PdfOutline
sourceimpl Extend<PdfOutline> for PdfOutline
impl Extend<PdfOutline> for PdfOutline
sourcefn extend<T: IntoIterator<Item = PdfOutline>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = PdfOutline>>(&mut self, iterator: T)
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)sourceimpl FromIterator<PdfOutline> for PdfOutline
impl FromIterator<PdfOutline> for PdfOutline
sourcefn from_iter<T: IntoIterator<Item = PdfOutline>>(iterator: T) -> PdfOutline
fn from_iter<T: IntoIterator<Item = PdfOutline>>(iterator: T) -> PdfOutline
sourceimpl Hash for PdfOutline
impl Hash for PdfOutline
sourceimpl LowerHex for PdfOutline
impl LowerHex for PdfOutline
sourceimpl Not for PdfOutline
impl Not for PdfOutline
sourcefn not(self) -> PdfOutline
fn not(self) -> PdfOutline
Returns the complement of this set of flags.
type Output = PdfOutline
type Output = PdfOutline
! operator.sourceimpl Octal for PdfOutline
impl Octal for PdfOutline
sourceimpl Ord for PdfOutline
impl Ord for PdfOutline
sourcefn cmp(&self, other: &PdfOutline) -> Ordering
fn cmp(&self, other: &PdfOutline) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialEq<PdfOutline> for PdfOutline
impl PartialEq<PdfOutline> for PdfOutline
sourcefn eq(&self, other: &PdfOutline) -> bool
fn eq(&self, other: &PdfOutline) -> bool
sourceimpl PartialOrd<PdfOutline> for PdfOutline
impl PartialOrd<PdfOutline> for PdfOutline
sourcefn partial_cmp(&self, other: &PdfOutline) -> Option<Ordering>
fn partial_cmp(&self, other: &PdfOutline) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl Sub<PdfOutline> for PdfOutline
impl Sub<PdfOutline> for PdfOutline
sourcefn sub(self, other: PdfOutline) -> PdfOutline
fn sub(self, other: PdfOutline) -> PdfOutline
Returns the set difference of the two sets of flags.
type Output = PdfOutline
type Output = PdfOutline
- operator.sourceimpl SubAssign<PdfOutline> for PdfOutline
impl SubAssign<PdfOutline> for PdfOutline
sourcefn sub_assign(&mut self, other: PdfOutline)
fn sub_assign(&mut self, other: PdfOutline)
Disables all flags enabled in the set.