pub struct Position {
pub offset: usize,
pub line: usize,
pub column: usize,
}
Expand description
A single position in an ICU message.
A position encodes one half of a span, and include the code unit offset, line number and column number.
Fields§
§offset: usize
§line: usize
§column: usize
Implementations§
Trait Implementations§
impl Copy for Position
impl Eq for Position
impl StructuralPartialEq for Position
Auto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnwindSafe for Position
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