enum BangType {
CData,
Comment,
DocType(i32),
}
Expand description
Possible elements started with <!
Variants§
Implementations§
source§impl BangType
impl BangType
const fn new(byte: Option<u8>) -> Result<Self>
sourcefn parse<'b>(
&mut self,
buf: &[u8],
chunk: &'b [u8],
) -> Option<(&'b [u8], usize)>
fn parse<'b>( &mut self, buf: &[u8], chunk: &'b [u8], ) -> Option<(&'b [u8], usize)>
If element is finished, returns its content up to >
symbol and
an index of this symbol, otherwise returns None
§Parameters
buf
: buffer with data consumed on previous iterationschunk
: data read on current iteration and not yet consumed from reader
const fn to_err(&self) -> Error
Trait Implementations§
impl StructuralPartialEq for BangType
Auto Trait Implementations§
impl Freeze for BangType
impl RefUnwindSafe for BangType
impl Send for BangType
impl Sync for BangType
impl Unpin for BangType
impl UnwindSafe for BangType
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