pub struct Raw<'i> { /* private fields */ }
Expand description
A slice of Source
Implementations§
Source§impl<'i> Raw<'i>
impl<'i> Raw<'i>
pub fn new_unchecked( raw: &'i str, encoding: Option<Encoding>, span: Span, ) -> Self
pub fn decode_key( &self, output: &mut dyn StringBuilder<'i>, error: &mut dyn ErrorSink, )
pub fn decode_scalar( &self, output: &mut dyn StringBuilder<'i>, error: &mut dyn ErrorSink, ) -> ScalarKind
pub fn decode_whitespace(&self, _error: &mut dyn ErrorSink)
pub fn decode_comment(&self, error: &mut dyn ErrorSink)
pub fn decode_newline(&self, error: &mut dyn ErrorSink)
pub fn as_str(&self) -> &'i str
pub fn as_bytes(&self) -> &'i [u8] ⓘ
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<'i> Freeze for Raw<'i>
impl<'i> RefUnwindSafe for Raw<'i>
impl<'i> Send for Raw<'i>
impl<'i> Sync for Raw<'i>
impl<'i> Unpin for Raw<'i>
impl<'i> UnwindSafe for Raw<'i>
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