Struct pulldown_cmark::Options []

pub struct Options {
    // some fields omitted
}

Methods

impl Options

fn empty() -> Options

Returns an empty set of flags.

fn all() -> Options

Returns the set containing all flags.

fn bits(&self) -> u32

Returns the raw value of the flags currently stored.

fn from_bits(bits: u32) -> Option<Options>

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

fn from_bits_truncate(bits: u32) -> Options

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

fn is_empty(&self) -> bool

Returns true if no flags are currently stored.

fn is_all(&self) -> bool

Returns true if all flags are currently set.

fn intersects(&self, other: Options) -> bool

Returns true if there are flags common to both self and other.

fn contains(&self, other: Options) -> bool

Returns true all of the flags in other are contained within self.

fn insert(&mut self, other: Options)

Inserts the specified flags in-place.

fn remove(&mut self, other: Options)

Removes the specified flags in-place.

fn toggle(&mut self, other: Options)

Toggles the specified flags in-place.

Trait Implementations

impl Debug for Options

fn fmt(&self, f: &mut Formatter) -> Result

impl BitOr for Options

type Output = Options

fn bitor(self, other: Options) -> Options

impl BitXor for Options

type Output = Options

fn bitxor(self, other: Options) -> Options

impl BitAnd for Options

type Output = Options

fn bitand(self, other: Options) -> Options

impl Sub for Options

type Output = Options

fn sub(self, other: Options) -> Options

impl Not for Options

type Output = Options

fn not(self) -> Options

impl FromIterator<Options> for Options

fn from_iter<T: IntoIterator<Item=Options>>(iterator: T) -> Options

Derived Implementations

impl Hash for Options

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Ord for Options

fn cmp(&self, __arg_0: &Options) -> Ordering

impl PartialOrd for Options

fn partial_cmp(&self, __arg_0: &Options) -> Option<Ordering>

fn lt(&self, __arg_0: &Options) -> bool

fn le(&self, __arg_0: &Options) -> bool

fn gt(&self, __arg_0: &Options) -> bool

fn ge(&self, __arg_0: &Options) -> bool

impl Clone for Options

fn clone(&self) -> Options

1.0.0fn clone_from(&mut self, source: &Self)

impl Eq for Options

impl PartialEq for Options

fn eq(&self, __arg_0: &Options) -> bool

fn ne(&self, __arg_0: &Options) -> bool

impl Copy for Options