pub struct LinkMutations<'a, Dom: Dom = DefaultDom>(/* private fields */);Expand description
The HTML External Resource Link element (<link>) specifies
relationships between the current document and an external resource.
This element is most commonly used to link to stylesheets, but is
also used to establish site icons (both “favicon” style icons and
icons for the home screen and apps on mobile devices) among other
things.
Implementations§
Source§impl<'a, Dom: Dom> LinkMutations<'a, Dom>
impl<'a, Dom: Dom> LinkMutations<'a, Dom>
pub fn attribute( self, name: String, f: impl FnMut(&HtmlLinkElement, Option<String>) + 'static, ) -> Self
pub fn as( self, f: impl FnMut(&HtmlLinkElement, Option<String>) + 'static, ) -> Self
pub fn crossorigin( self, f: impl FnMut(&HtmlLinkElement, Option<String>) + 'static, ) -> Self
pub fn disabled( self, f: impl FnMut(&HtmlLinkElement, Option<String>) + 'static, ) -> Self
pub fn href( self, f: impl FnMut(&HtmlLinkElement, Option<String>) + 'static, ) -> Self
pub fn hreflang( self, f: impl FnMut(&HtmlLinkElement, Option<String>) + 'static, ) -> Self
pub fn media( self, f: impl FnMut(&HtmlLinkElement, Option<String>) + 'static, ) -> Self
pub fn rel( self, f: impl FnMut(&HtmlLinkElement, Option<String>) + 'static, ) -> Self
pub fn sizes( self, f: impl FnMut(&HtmlLinkElement, Option<String>) + 'static, ) -> Self
pub fn title( self, f: impl FnMut(&HtmlLinkElement, Option<String>) + 'static, ) -> Self
pub fn type( self, f: impl FnMut(&HtmlLinkElement, Option<String>) + 'static, ) -> Self
Auto Trait Implementations§
impl<'a, Dom> Freeze for LinkMutations<'a, Dom>
impl<'a, Dom = Dry> !RefUnwindSafe for LinkMutations<'a, Dom>
impl<'a, Dom = Dry> !Send for LinkMutations<'a, Dom>
impl<'a, Dom = Dry> !Sync for LinkMutations<'a, Dom>
impl<'a, Dom> Unpin for LinkMutations<'a, Dom>
impl<'a, Dom = Dry> !UnwindSafe for LinkMutations<'a, Dom>
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
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