pub struct ConsumerSet(/* private fields */);Expand description
A small bitset over YamlConsumer.
Implementations§
Source§impl ConsumerSet
impl ConsumerSet
Sourcepub const fn all() -> Self
pub const fn all() -> Self
Every consumer — the rejection set for a check all real parsers make.
Sourcepub const fn of(consumer: YamlConsumer) -> Self
pub const fn of(consumer: YamlConsumer) -> Self
A single-consumer set.
Sourcepub const fn with(self, consumer: YamlConsumer) -> Self
pub const fn with(self, consumer: YamlConsumer) -> Self
Add a consumer.
Sourcepub const fn contains(self, consumer: YamlConsumer) -> bool
pub const fn contains(self, consumer: YamlConsumer) -> bool
Does this set contain consumer?
Sourcepub const fn intersects(self, other: ConsumerSet) -> bool
pub const fn intersects(self, other: ConsumerSet) -> bool
Do the two sets share any consumer?
Trait Implementations§
Source§impl Clone for ConsumerSet
impl Clone for ConsumerSet
Source§fn clone(&self) -> ConsumerSet
fn clone(&self) -> ConsumerSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConsumerSet
Source§impl Debug for ConsumerSet
impl Debug for ConsumerSet
Source§impl Default for ConsumerSet
impl Default for ConsumerSet
Source§fn default() -> ConsumerSet
fn default() -> ConsumerSet
Returns the “default value” for a type. Read more
impl Eq for ConsumerSet
Source§impl PartialEq for ConsumerSet
impl PartialEq for ConsumerSet
Source§fn eq(&self, other: &ConsumerSet) -> bool
fn eq(&self, other: &ConsumerSet) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConsumerSet
Auto Trait Implementations§
impl Freeze for ConsumerSet
impl RefUnwindSafe for ConsumerSet
impl Send for ConsumerSet
impl Sync for ConsumerSet
impl Unpin for ConsumerSet
impl UnsafeUnpin for ConsumerSet
impl UnwindSafe for ConsumerSet
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