pub enum LinkTarget {
Current,
NewWindow,
Parent,
Top,
Named(String),
}Expand description
Where a hyperlink should open its destination.
Shells map the standard variants to the host’s native navigation model. HTML
renderers use the corresponding _self, _blank, _parent, and _top
targets, while Named preserves an application-provided
browsing-context name.
Variants§
Current
Reuse the active browsing context or native application window.
NewWindow
Open a new browser tab/window or the closest native equivalent.
Parent
Navigate the parent browsing context.
Top
Navigate the top-level browsing context.
Named(String)
Navigate a named browsing context.
Implementations§
Source§impl LinkTarget
impl LinkTarget
Sourcepub fn as_html_target(&self) -> &str
pub fn as_html_target(&self) -> &str
Returns the HTML target value represented by this target.
Trait Implementations§
Source§impl Clone for LinkTarget
impl Clone for LinkTarget
Source§fn clone(&self) -> LinkTarget
fn clone(&self) -> LinkTarget
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 LinkTarget
impl Debug for LinkTarget
Source§impl Default for LinkTarget
impl Default for LinkTarget
Source§fn default() -> LinkTarget
fn default() -> LinkTarget
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LinkTarget
impl<'de> Deserialize<'de> for LinkTarget
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
impl Eq for LinkTarget
Source§impl Hash for LinkTarget
impl Hash for LinkTarget
Source§impl PartialEq for LinkTarget
impl PartialEq for LinkTarget
Source§impl Serialize for LinkTarget
impl Serialize for LinkTarget
impl StructuralPartialEq for LinkTarget
Auto Trait Implementations§
impl Freeze for LinkTarget
impl RefUnwindSafe for LinkTarget
impl Send for LinkTarget
impl Sync for LinkTarget
impl Unpin for LinkTarget
impl UnsafeUnpin for LinkTarget
impl UnwindSafe for LinkTarget
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