pub struct PreloadLinkProps<'__a> {
pub source: &'__a FontSource,
}Available on crate feature
view only.Expand description
Renders a rel="preload" <link> for a single font FontSource.
Emits nothing for sources that are not URL-backed (such as local fonts). The
type attribute is set from the source’s format when known and omitted
otherwise.
Fields§
§source: &'__a FontSourceThe font source to preload.
Implementations§
Source§impl<'__a> PreloadLinkProps<'__a>
impl<'__a> PreloadLinkProps<'__a>
Sourcepub fn builder() -> PreloadLinkPropsBuilder<'__a, source>
pub fn builder() -> PreloadLinkPropsBuilder<'__a, source>
Returns a PreloadLinkPropsBuilder with no properties set.
Trait Implementations§
Auto Trait Implementations§
impl<'__a> Freeze for PreloadLinkProps<'__a>
impl<'__a> RefUnwindSafe for PreloadLinkProps<'__a>
impl<'__a> Send for PreloadLinkProps<'__a>
impl<'__a> Sync for PreloadLinkProps<'__a>
impl<'__a> Unpin for PreloadLinkProps<'__a>
impl<'__a> UnsafeUnpin for PreloadLinkProps<'__a>
impl<'__a> UnwindSafe for PreloadLinkProps<'__a>
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