pub struct OneOf(pub [bool; 256]);Expand description
See oneof()
Tuple Fields§
§0: [bool; 256]Trait Implementations§
source§impl Pattern for OneOf
impl Pattern for OneOf
source§fn test<'i>(&self, input: &'i [u8]) -> Option<(&'i [u8], &'i [u8])>
fn test<'i>(&self, input: &'i [u8]) -> Option<(&'i [u8], &'i [u8])>
Tests the pattern against the input slice. If the pattern matches, the matching part is
returned along with what is left of the input. Returns
None if the pattern does not matchsource§fn or<P>(self, other: P) -> Or<Self, P>where
Self: Sized,
fn or<P>(self, other: P) -> Or<Self, P>where
Self: Sized,
Expresses an alternate pattern. Read more
impl Copy for OneOf
Auto Trait Implementations§
impl Freeze for OneOf
impl RefUnwindSafe for OneOf
impl Send for OneOf
impl Sync for OneOf
impl Unpin for OneOf
impl UnwindSafe for OneOf
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)