pub struct Input<'a> { /* private fields */ }Expand description
Input source abstraction
Implementations§
Source§impl<'a> Input<'a>
impl<'a> Input<'a>
Sourcepub const fn from_bytes(source: &'a [u8]) -> Self
pub const fn from_bytes(source: &'a [u8]) -> Self
Create from byte slice
Sourcepub const fn with_filename(self, filename: &'a str) -> Self
pub const fn with_filename(self, filename: &'a str) -> Self
Set filename for error reporting
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Input<'a>
impl<'a> RefUnwindSafe for Input<'a>
impl<'a> Send for Input<'a>
impl<'a> Sync for Input<'a>
impl<'a> Unpin for Input<'a>
impl<'a> UnwindSafe for Input<'a>
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