pub struct ContentToken {
pub kind: ContentTokenKind,
pub span: ByteSpan,
}Expand description
One token of a content stream. span indexes the DECODED content
buffer the token was parsed from (see module docs).
Fields§
§kind: ContentTokenKindClassification/content.
span: ByteSpanExact bytes in the decoded content buffer.
Trait Implementations§
Source§impl Clone for ContentToken
impl Clone for ContentToken
Source§impl Debug for ContentToken
impl Debug for ContentToken
Source§impl PartialEq for ContentToken
impl PartialEq for ContentToken
impl StructuralPartialEq for ContentToken
Auto Trait Implementations§
impl Forget for ContentToken
impl Freeze for ContentTokenwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Object>: Freeze,
PhantomData<(Name, Object)>: Freeze,
impl Move for ContentToken
impl RefUnwindSafe for ContentToken
impl Send for ContentTokenwhere
RawVecInner: Send,
impl Sync for ContentTokenwhere
RawVecInner: Sync,
impl Unpin for ContentToken
impl UnsafeUnpin for ContentTokenwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Object>: UnsafeUnpin,
PhantomData<(Name, Object)>: UnsafeUnpin,
impl UnwindSafe for ContentTokenwhere
RawVecInner: UnwindSafe,
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