Skip to main content

Target

Enum Target 

Source
pub enum Target {
    None,
    _Blank,
    _Self,
    _Parent,
    _Top,
    _UnfencedTop,
}

Variants§

§

None

This removes the attribute from the HTML element. This is the default, so there is no need to set this manually.

§

_Blank

Usually a new tab, but users can configure browsers to open a new window instead.

from MDN Webdocs - CC-BY-SA v2.5

§

_Self

The current browsing context.

from MDN Webdocs - CC-BY-SA v2.5

§

_Parent

The parent browsing context of the current one. If no parent, behaves as _self.

from MDN Webdocs - CC-BY-SA v2.5

§

_Top

The topmost browsing context. To be specific, this means the “highest” context that’s an ancestor of the current one. If no ancestors, behaves as _self.

from MDN Webdocs - CC-BY-SA v2.5

§

_UnfencedTop

Allows embedded fenced frames to navigate the top-level frame (i.e. traversing beyond the root of the fenced frame, unlike other reserved destinations). Note that the navigation will still succeed if this is used outside of a fenced frame context, but it will not act like a reserved keyword.

from MDN Webdocs - CC-BY-SA v2.5

Trait Implementations§

Source§

impl Default for Target

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Forget for Target

§

impl Freeze for Target

§

impl Move for Target

§

impl RefUnwindSafe for Target

§

impl Send for Target

§

impl Sync for Target

§

impl Unpin for Target

§

impl UnsafeUnpin for Target

§

impl UnwindSafe for Target

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.