pub enum ByteStringPattern {
Any,
Value(Vec<u8>),
BinaryRegex(Regex),
}
Expand description
Pattern for matching byte string values in dCBOR.
Variants§
Any
Matches any byte string.
Value(Vec<u8>)
Matches the specific byte string.
BinaryRegex(Regex)
Matches the binary regex for a byte string.
Implementations§
Trait Implementations§
Source§impl Clone for ByteStringPattern
impl Clone for ByteStringPattern
Source§fn clone(&self) -> ByteStringPattern
fn clone(&self) -> ByteStringPattern
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ByteStringPattern
impl Debug for ByteStringPattern
Source§impl Display for ByteStringPattern
impl Display for ByteStringPattern
Source§impl Hash for ByteStringPattern
impl Hash for ByteStringPattern
Source§impl PartialEq for ByteStringPattern
impl PartialEq for ByteStringPattern
impl Eq for ByteStringPattern
Auto Trait Implementations§
impl Freeze for ByteStringPattern
impl RefUnwindSafe for ByteStringPattern
impl Send for ByteStringPattern
impl Sync for ByteStringPattern
impl Unpin for ByteStringPattern
impl UnwindSafe for ByteStringPattern
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