pub struct FontInstallSpec {
pub id: String,
pub styles: Vec<FontVariantSpec>,
}
Fields§
§id: String
§styles: Vec<FontVariantSpec>
Implementations§
Source§impl FontInstallSpec
impl FontInstallSpec
pub fn new<S, I, F>(id: S, styles: I) -> Self
pub fn new_all_styles<S>(id: S) -> Selfwhere
S: ToString,
Trait Implementations§
Source§impl Clone for FontInstallSpec
impl Clone for FontInstallSpec
Source§fn clone(&self) -> FontInstallSpec
fn clone(&self) -> FontInstallSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FontInstallSpec
impl Debug for FontInstallSpec
Source§impl Hash for FontInstallSpec
impl Hash for FontInstallSpec
Source§impl PartialEq for FontInstallSpec
impl PartialEq for FontInstallSpec
impl Eq for FontInstallSpec
impl StructuralPartialEq for FontInstallSpec
Auto Trait Implementations§
impl Freeze for FontInstallSpec
impl RefUnwindSafe for FontInstallSpec
impl Send for FontInstallSpec
impl Sync for FontInstallSpec
impl Unpin for FontInstallSpec
impl UnwindSafe for FontInstallSpec
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.