pub struct ComponentLocation {
pub file_name: Cow<'static, str>,
pub column: u32,
pub line: u32,
pub path: ComponentPath,
}Fields§
§file_name: Cow<'static, str>§column: u32§line: u32§path: ComponentPathImplementations§
Source§impl ComponentLocation
impl ComponentLocation
pub fn hotlink_text(&self) -> String
pub fn parent_path(&self) -> &str
Trait Implementations§
Source§impl Clone for ComponentLocation
impl Clone for ComponentLocation
Source§fn clone(&self) -> ComponentLocation
fn clone(&self) -> ComponentLocation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ComponentLocation
impl Debug for ComponentLocation
Source§impl<'de> Deserialize<'de> for ComponentLocation
impl<'de> Deserialize<'de> for ComponentLocation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ComponentLocation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ComponentLocation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ComponentLocation
Source§impl Hash for ComponentLocation
impl Hash for ComponentLocation
Source§impl Ord for ComponentLocation
impl Ord for ComponentLocation
Source§fn cmp(&self, other: &ComponentLocation) -> Ordering
fn cmp(&self, other: &ComponentLocation) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ComponentLocation
impl PartialEq for ComponentLocation
Source§impl PartialOrd for ComponentLocation
impl PartialOrd for ComponentLocation
Source§impl Serialize for ComponentLocation
impl Serialize for ComponentLocation
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ComponentLocation
Auto Trait Implementations§
impl Freeze for ComponentLocation
impl RefUnwindSafe for ComponentLocation
impl Send for ComponentLocation
impl Sync for ComponentLocation
impl Unpin for ComponentLocation
impl UnsafeUnpin for ComponentLocation
impl UnwindSafe for ComponentLocation
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.