pub struct ResolvedLocation { /* private fields */ }Expand description
A Location resolved into line/column information.
Implementations§
Source§impl ResolvedLocation
impl ResolvedLocation
pub const MISSING: ResolvedLocation
pub fn is_missing(&self) -> bool
pub fn line(&self) -> Result<u64, MissingLocationError>
pub fn column(&self) -> Result<u64, MissingLocationError>
pub fn to_location(&self) -> Location
Trait Implementations§
Source§impl Clone for ResolvedLocation
impl Clone for ResolvedLocation
Source§fn clone(&self) -> ResolvedLocation
fn clone(&self) -> ResolvedLocation
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 ResolvedLocation
impl Debug for ResolvedLocation
Source§impl Display for ResolvedLocation
impl Display for ResolvedLocation
impl Copy for ResolvedLocation
Auto Trait Implementations§
impl Freeze for ResolvedLocation
impl RefUnwindSafe for ResolvedLocation
impl Send for ResolvedLocation
impl Sync for ResolvedLocation
impl Unpin for ResolvedLocation
impl UnwindSafe for ResolvedLocation
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