pub struct link;Available on crate feature
view only.Expand description
Loads a Font into the page.
Renders the stylesheet <link> that pulls in the font’s @font-face rules,
and, by default, a rel="preload" <link> for the first source of each
face so the browser can start fetching the files before the CSS is parsed.
Ok(view! {
topcoat::font::link(font: LAVISHLY_YOURS)
})Trait Implementations§
Source§impl Component for link
impl Component for link
Source§fn render<'__a, '__props>(
self,
cx: &'__a Cx,
props: Self::Props<'__props>,
) -> impl Future<Output = Result<impl View>> + Send + '__awhere
Self: '__a,
Self::Props<'__props>: '__a,
'__props: '__a,
fn render<'__a, '__props>(
self,
cx: &'__a Cx,
props: Self::Props<'__props>,
) -> impl Future<Output = Result<impl View>> + Send + '__awhere
Self: '__a,
Self::Props<'__props>: '__a,
'__props: '__a,
fn props_builder<'a>() -> <Self::Props<'a> as Props>::Builder
Auto Trait Implementations§
impl Freeze for link
impl RefUnwindSafe for link
impl Send for link
impl Sync for link
impl Unpin for link
impl UnsafeUnpin for link
impl UnwindSafe for link
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