Trait tauri_runtime::tag::TagRef[][src]

pub trait TagRef<T: Tag>: Display + ToOwned<Owned = T> + PartialEq<T> + Eq + Hash where
    T: Borrow<Self>, 
{ }
Expand description

A reference to a Tag.

  • Display so that we can still convert this tag to a JavaScript string.
  • ToOwned to make sure we can clone it into the owned tag in specific cases.
  • PartialEq so that we can compare refs to the owned tags easily.
  • Hash + Eq because we want to be able to use a ref as a key to internal hashmaps.

Implementors

impl<T: Tag, R: ?Sized> TagRef<T> for R where
    T: Borrow<R>,
    R: Display + ToOwned<Owned = T> + PartialEq<T> + Eq + Hash
[src]

Automatically implement TagRef for all types that fit the requirements.

Loading content...