Struct swash::proxy::VariationsProxy
source · pub struct VariationsProxy { /* private fields */ }
Expand description
Proxy for rematerializing variations collections.
Implementations§
source§impl VariationsProxy
impl VariationsProxy
sourcepub fn from_font(font: &FontRef<'_>) -> Self
pub fn from_font(font: &FontRef<'_>) -> Self
Creates a variations proxy from the specified font.
sourcepub fn materialize<'a>(&self, font: &FontRef<'a>) -> Variations<'a> ⓘ
pub fn materialize<'a>(&self, font: &FontRef<'a>) -> Variations<'a> ⓘ
Materializes variations from the specified font. This proxy must have been created by the same font.
Trait Implementations§
source§impl Clone for VariationsProxy
impl Clone for VariationsProxy
source§fn clone(&self) -> VariationsProxy
fn clone(&self) -> VariationsProxy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for VariationsProxy
Auto Trait Implementations§
impl Freeze for VariationsProxy
impl RefUnwindSafe for VariationsProxy
impl Send for VariationsProxy
impl Sync for VariationsProxy
impl Unpin for VariationsProxy
impl UnwindSafe for VariationsProxy
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)