Struct oniguruma::SyntaxOperator [] [src]

pub struct SyntaxOperator {
    // some fields omitted
}

Methods

impl SyntaxOperator

fn empty() -> SyntaxOperator

Returns an empty set of flags.

fn all() -> SyntaxOperator

Returns the set containing all flags.

fn bits(&self) -> u64

Returns the raw value of the flags currently stored.

fn from_bits(bits: u64) -> Option<SyntaxOperator>

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

fn from_bits_truncate(bits: u64) -> SyntaxOperator

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: SyntaxOperator) -> bool

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

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

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

fn insert(&mut self, other: SyntaxOperator)

Inserts the specified flags in-place.

fn remove(&mut self, other: SyntaxOperator)

Removes the specified flags in-place.

fn toggle(&mut self, other: SyntaxOperator)

Toggles the specified flags in-place.

Trait Implementations

impl Debug for SyntaxOperator

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

impl BitOr for SyntaxOperator

type Output = SyntaxOperator

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

impl BitXor for SyntaxOperator

type Output = SyntaxOperator

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

impl BitAnd for SyntaxOperator

type Output = SyntaxOperator

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

impl Sub for SyntaxOperator

type Output = SyntaxOperator

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

impl Not for SyntaxOperator

type Output = SyntaxOperator

fn not(self) -> SyntaxOperator

impl FromIterator<SyntaxOperator> for SyntaxOperator

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

Derived Implementations

impl Hash for SyntaxOperator

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

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

impl Ord for SyntaxOperator

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

impl PartialOrd for SyntaxOperator

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

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

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

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

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

impl Clone for SyntaxOperator

fn clone(&self) -> SyntaxOperator

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

impl Eq for SyntaxOperator

impl PartialEq for SyntaxOperator

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

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

impl Copy for SyntaxOperator