pub enum BufferType {
Bytes(usize),
Span,
}
Expand description
The type of Buffer
you want in each Token
Variants§
Bytes(usize)
Use a Buffer::MultiByte
were appropriate. Initialize it with the
given capacity (to obtain higher performance when pushing characters)
Span
Trait Implementations§
Source§impl Clone for BufferType
impl Clone for BufferType
Source§fn clone(&self) -> BufferType
fn clone(&self) -> BufferType
Returns a copy 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 BufferType
impl Debug for BufferType
Source§impl PartialEq for BufferType
impl PartialEq for BufferType
impl StructuralPartialEq for BufferType
Auto Trait Implementations§
impl Freeze for BufferType
impl RefUnwindSafe for BufferType
impl Send for BufferType
impl Sync for BufferType
impl Unpin for BufferType
impl UnwindSafe for BufferType
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