pub struct BytesExpr<'a> {
pub span: Span,
pub raw: Cow<'a, str>,
pub value: Vec<u8>,
pub kind: BytesKind,
}Expand description
Byte string expression: b"bytes", br#"raw"#.
Fields§
§span: SpanThe span of the byte string literal including prefix and quotes.
raw: Cow<'a, str>The raw source text.
value: Vec<u8>The parsed byte values.
kind: BytesKindThe kind of byte string literal.
Implementations§
Trait Implementations§
impl<'a> Eq for BytesExpr<'a>
impl<'a> StructuralPartialEq for BytesExpr<'a>
Auto Trait Implementations§
impl<'a> Freeze for BytesExpr<'a>
impl<'a> RefUnwindSafe for BytesExpr<'a>
impl<'a> Send for BytesExpr<'a>
impl<'a> Sync for BytesExpr<'a>
impl<'a> Unpin for BytesExpr<'a>
impl<'a> UnwindSafe for BytesExpr<'a>
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.