pub enum FaceRef {
Generic(FontFamily),
Named(FaceId),
}Expand description
The face a glyph is set in — FontFace’s Copy half, so that a
Style stays Copy and Eq and can be stamped on every glyph and
compared for run-merging.
A named family is an id into the map’s FaceTable, which the walker
interns into as it meets each name. A frontend reads the name back with
crate::wysiwyg::VisualMap::face_name.
Variants§
Generic(FontFamily)
Named(FaceId)
Implementations§
Trait Implementations§
impl Copy for FaceRef
impl Eq for FaceRef
impl StructuralPartialEq for FaceRef
Auto Trait Implementations§
impl Freeze for FaceRef
impl RefUnwindSafe for FaceRef
impl Send for FaceRef
impl Sync for FaceRef
impl Unpin for FaceRef
impl UnsafeUnpin for FaceRef
impl UnwindSafe for FaceRef
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