pub enum AnchorLocation {
Url(String),
File(String),
Source(Text),
}
Expand description
Anchors represent a location that a value originated from. The value may have been loaded from a file, fetched from a website, or parsed from some text
Variants§
Url(String)
The originating site where the value was first found
File(String)
The original file where the value was loaded from
Source(Text)
The text where the value was parsed from
Trait Implementations§
Source§impl Clone for AnchorLocation
impl Clone for AnchorLocation
Source§fn clone(&self) -> AnchorLocation
fn clone(&self) -> AnchorLocation
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 AnchorLocation
impl Debug for AnchorLocation
Source§impl<'de> Deserialize<'de> for AnchorLocation
impl<'de> Deserialize<'de> for AnchorLocation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for AnchorLocation
impl Hash for AnchorLocation
Source§impl Ord for AnchorLocation
impl Ord for AnchorLocation
Source§fn cmp(&self, other: &AnchorLocation) -> Ordering
fn cmp(&self, other: &AnchorLocation) -> Ordering
1.21.0 · 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
Source§impl PartialEq for AnchorLocation
impl PartialEq for AnchorLocation
Source§impl PartialOrd for AnchorLocation
impl PartialOrd for AnchorLocation
Source§impl Serialize for AnchorLocation
impl Serialize for AnchorLocation
impl Eq for AnchorLocation
impl StructuralPartialEq for AnchorLocation
Auto Trait Implementations§
impl Freeze for AnchorLocation
impl RefUnwindSafe for AnchorLocation
impl Send for AnchorLocation
impl Sync for AnchorLocation
impl Unpin for AnchorLocation
impl UnwindSafe for AnchorLocation
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