pub struct Pos {
pub byte_index: usize,
}
Fields§
§byte_index: usize
Implementations§
Source§impl Pos
impl Pos
pub fn get_input_context<R, F: for<'input> FnOnce(Option<InputContext<'input>>) -> R>( f: F, ) -> R
pub fn call_with_input_context<'input, R, F: FnOnce() -> R>( input: InputContext<'input>, f: F, ) -> R
Trait Implementations§
Source§impl Ord for Pos
impl Ord for Pos
Source§impl PartialOrd for Pos
impl PartialOrd for Pos
impl Copy for Pos
impl Eq for Pos
impl StructuralPartialEq for Pos
Auto Trait Implementations§
impl Freeze for Pos
impl RefUnwindSafe for Pos
impl Send for Pos
impl Sync for Pos
impl Unpin for Pos
impl UnwindSafe for Pos
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