pub struct InputPosition { /* private fields */ }
Implementations§
Source§impl InputPosition
impl InputPosition
pub fn new() -> Self
pub fn new_with_index(&self, index: usize) -> Self
pub fn new_with_key(&self, key: &str) -> Self
pub fn add_index(&mut self, index: usize)
pub fn add_key(&mut self, key: &str)
pub fn add<T: Into<InputPositionType>>(&mut self, key_or_index: T)
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for InputPosition
impl Clone for InputPosition
Source§fn clone(&self) -> InputPosition
fn clone(&self) -> InputPosition
Returns a duplicate 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 InputPosition
impl Debug for InputPosition
Source§impl Default for InputPosition
impl Default for InputPosition
Source§impl Display for InputPosition
impl Display for InputPosition
Source§impl Index<usize> for InputPosition
impl Index<usize> for InputPosition
Source§impl PartialEq for InputPosition
impl PartialEq for InputPosition
Source§impl Serialize for InputPosition
impl Serialize for InputPosition
impl StructuralPartialEq for InputPosition
Auto Trait Implementations§
impl Freeze for InputPosition
impl RefUnwindSafe for InputPosition
impl Send for InputPosition
impl Sync for InputPosition
impl Unpin for InputPosition
impl UnwindSafe for InputPosition
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