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 duplicate 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 for AnchorTarget
impl PartialEq for AnchorTarget
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 StructuralPartialEq for AnchorTarget
Auto Trait Implementations§
impl Freeze for AnchorTarget
impl RefUnwindSafe for AnchorTarget
impl Send for AnchorTarget
impl Sync for AnchorTarget
impl Unpin for AnchorTarget
impl UnwindSafe for AnchorTarget
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§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
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more