pub struct SourceLabel {
pub location: Option<SourceLocation>,
pub label: String,
}Expand description
Labels a source region, or a source-free native definition without a location.
See the module example.
Fields§
§location: Option<SourceLocation>Contains a real source location, or None for source-free definitions.
label: StringDescribes the implicated definition or use.
Trait Implementations§
Source§impl Clone for SourceLabel
impl Clone for SourceLabel
Source§impl Debug for SourceLabel
impl Debug for SourceLabel
impl Eq for SourceLabel
Source§impl PartialEq for SourceLabel
impl PartialEq for SourceLabel
impl StructuralPartialEq for SourceLabel
Auto Trait Implementations§
impl !Send for SourceLabel
impl !Sync for SourceLabel
impl Freeze for SourceLabel
impl RefUnwindSafe for SourceLabel
impl Unpin for SourceLabel
impl UnsafeUnpin for SourceLabel
impl UnwindSafe for SourceLabel
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
Checks if this value is equivalent to the given key. Read more
§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.