struct LiteralRepr {
id: SpanId,
text: u32,
suffix: u32,
kind: u16,
}Fields§
§id: SpanId§text: u32§suffix: u32§kind: u16Implementations§
Source§impl LiteralRepr
impl LiteralRepr
fn write(self) -> [u32; 2]
fn read([id, text]: [u32; 2]) -> LiteralRepr
fn write_with_kind(self) -> [u32; 4]
fn read_with_kind([id, text, kind, suffix]: [u32; 4]) -> LiteralRepr
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LiteralRepr
impl RefUnwindSafe for LiteralRepr
impl Send for LiteralRepr
impl Sync for LiteralRepr
impl Unpin for LiteralRepr
impl UnsafeUnpin for LiteralRepr
impl UnwindSafe for LiteralRepr
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more