Enum ftml::tree::LinkLocation
source · pub enum LinkLocation<'a> {
Page(PageRef<'a>),
Url(Cow<'a, str>),
}Variants§
Page(PageRef<'a>)
This link points to a particular page on a wiki.
Url(Cow<'a, str>)
This link is to a specific URL.
Implementations§
source§impl<'a> LinkLocation<'a>
impl<'a> LinkLocation<'a>
Trait Implementations§
source§impl<'a> Clone for LinkLocation<'a>
impl<'a> Clone for LinkLocation<'a>
source§fn clone(&self) -> LinkLocation<'a>
fn clone(&self) -> LinkLocation<'a>
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<'a> Debug for LinkLocation<'a>
impl<'a> Debug for LinkLocation<'a>
source§impl<'de, 'a> Deserialize<'de> for LinkLocation<'a>
impl<'de, 'a> Deserialize<'de> for LinkLocation<'a>
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<'a> Hash for LinkLocation<'a>
impl<'a> Hash for LinkLocation<'a>
source§impl<'a> PartialEq<LinkLocation<'a>> for LinkLocation<'a>
impl<'a> PartialEq<LinkLocation<'a>> for LinkLocation<'a>
source§fn eq(&self, other: &LinkLocation<'a>) -> bool
fn eq(&self, other: &LinkLocation<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'a> Serialize for LinkLocation<'a>
impl<'a> Serialize for LinkLocation<'a>
impl<'a> Eq for LinkLocation<'a>
impl<'a> StructuralEq for LinkLocation<'a>
impl<'a> StructuralPartialEq for LinkLocation<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for LinkLocation<'a>
impl<'a> Send for LinkLocation<'a>
impl<'a> Sync for LinkLocation<'a>
impl<'a> Unpin for LinkLocation<'a>
impl<'a> UnwindSafe for LinkLocation<'a>
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer