pub struct FontReference {
pub index: FontCollectionIndex,
pub color: Option<ColorChoice>,
/* private fields */
}Expand description
The font collection and colour carried by fontRef.
Fields§
§index: FontCollectionIndex§color: Option<ColorChoice>Implementations§
Source§impl FontReference
impl FontReference
pub fn new(index: FontCollectionIndex, color: ColorChoice) -> Self
pub fn raw_children(&self) -> &OrderedRawChildren
Trait Implementations§
Source§impl Clone for FontReference
impl Clone for FontReference
Source§fn clone(&self) -> FontReference
fn clone(&self) -> FontReference
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FontReference
impl Debug for FontReference
impl Eq for FontReference
Source§impl PartialEq for FontReference
impl PartialEq for FontReference
impl StructuralPartialEq for FontReference
Auto Trait Implementations§
impl Freeze for FontReference
impl RefUnwindSafe for FontReference
impl Send for FontReference
impl Sync for FontReference
impl Unpin for FontReference
impl UnsafeUnpin for FontReference
impl UnwindSafe for FontReference
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