Struct starlark::codemap::ResolvedFileLine
source · pub struct ResolvedFileLine {
pub file: String,
pub line: usize,
}
Expand description
File and line number.
Fields§
§file: String
File name.
line: usize
Line number is 0-based but displayed as 1-based.
Trait Implementations§
source§impl Clone for ResolvedFileLine
impl Clone for ResolvedFileLine
source§fn clone(&self) -> ResolvedFileLine
fn clone(&self) -> ResolvedFileLine
Returns a copy 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 ResolvedFileLine
impl Debug for ResolvedFileLine
source§impl Display for ResolvedFileLine
impl Display for ResolvedFileLine
source§impl Hash for ResolvedFileLine
impl Hash for ResolvedFileLine
source§impl PartialEq for ResolvedFileLine
impl PartialEq for ResolvedFileLine
source§fn eq(&self, other: &ResolvedFileLine) -> bool
fn eq(&self, other: &ResolvedFileLine) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ResolvedFileLine
impl StructuralPartialEq for ResolvedFileLine
Auto Trait Implementations§
impl RefUnwindSafe for ResolvedFileLine
impl Send for ResolvedFileLine
impl Sync for ResolvedFileLine
impl Unpin for ResolvedFileLine
impl UnwindSafe for ResolvedFileLine
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.