#[non_exhaustive]pub struct Place {
pub line: usize,
pub column: usize,
}Available on crate features
input-toml or input-yaml only.Expand description
The 1-based line and column where a field is written.
The column counts characters. Input::place returns
one. The struct is non-exhaustive so a field such as an end position can
join it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.line: usize1-based line in the whole file, frontmatter lines included.
column: usize1-based column, counted in characters.
Trait Implementations§
impl Copy for Place
impl Eq for Place
impl StructuralPartialEq for Place
Auto Trait Implementations§
impl Forget for Place
impl Freeze for Place
impl Move for Place
impl RefUnwindSafe for Place
impl Send for Place
impl Sync for Place
impl Unpin for Place
impl UnsafeUnpin for Place
impl UnwindSafe for Place
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