pub struct Origin<'a> { /* private fields */ }
Expand description
Implementations§
Source§impl<'a> Origin<'a>
impl<'a> Origin<'a>
Sourcepub fn path(path: impl Into<Cow<'a, str>>) -> Self
pub fn path(path: impl Into<Cow<'a, str>>) -> Self
Text passed to this function is considered “untrusted input”, as such all text is passed through a normalization function. Pre-styled text is not allowed to be passed to this function.
Sourcepub fn char_column(self, char_column: usize) -> Self
pub fn char_column(self, char_column: usize) -> Self
Set the default column to display
char_column
is only be respected if Origin::line
is also set.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Origin<'a>
impl<'a> RefUnwindSafe for Origin<'a>
impl<'a> Send for Origin<'a>
impl<'a> Sync for Origin<'a>
impl<'a> Unpin for Origin<'a>
impl<'a> UnwindSafe for Origin<'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