Enum ftml::tree::AnchorTarget
source · pub enum AnchorTarget {
NewTab,
Parent,
Top,
Same,
}
Variants§
NewTab
Open the link in a new tab.
HTML attribute is _blank
.
Parent
Open the link in the parent frame.
HTML attribute is _parent
.
Top
Open the link in the top-most frame.
HTML attribute is _top
.
Same
Open the link in the current frame.
HTML attribute is _self
.
This is the default setting, so the “anchor” field does not need to be included.
Implementations§
Trait Implementations§
source§impl Clone for AnchorTarget
impl Clone for AnchorTarget
source§fn clone(&self) -> AnchorTarget
fn clone(&self) -> AnchorTarget
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 AnchorTarget
impl Debug for AnchorTarget
source§impl<'de> Deserialize<'de> for AnchorTarget
impl<'de> Deserialize<'de> for AnchorTarget
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<'_derivative_strum> From<&'_derivative_strum AnchorTarget> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum AnchorTarget> for &'static str
source§fn from(x: &'_derivative_strum AnchorTarget) -> &'static str
fn from(x: &'_derivative_strum AnchorTarget) -> &'static str
Converts to this type from the input type.
source§impl From<AnchorTarget> for &'static str
impl From<AnchorTarget> for &'static str
source§fn from(x: AnchorTarget) -> &'static str
fn from(x: AnchorTarget) -> &'static str
Converts to this type from the input type.
source§impl Hash for AnchorTarget
impl Hash for AnchorTarget
source§impl PartialEq<AnchorTarget> for AnchorTarget
impl PartialEq<AnchorTarget> for AnchorTarget
source§fn eq(&self, other: &AnchorTarget) -> bool
fn eq(&self, other: &AnchorTarget) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AnchorTarget
impl Serialize for AnchorTarget
source§impl<'a> TryFrom<&'a str> for AnchorTarget
impl<'a> TryFrom<&'a str> for AnchorTarget
impl Copy for AnchorTarget
impl Eq for AnchorTarget
impl StructuralEq for AnchorTarget
impl StructuralPartialEq for AnchorTarget
Auto Trait Implementations§
impl RefUnwindSafe for AnchorTarget
impl Send for AnchorTarget
impl Sync for AnchorTarget
impl Unpin for AnchorTarget
impl UnwindSafe for AnchorTarget
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