pub struct BezGlyph(/* private fields */);Expand description
A BezGlyph is a collection of BezPaths, which represent the outline of a glyph.
It is used to store the paths of a glyph in a vector, allowing for multiple paths
to be stored in a single glyph.
Implementations§
Source§impl BezGlyph
impl BezGlyph
Sourcepub fn new_from_paths(b: Vec<BezPath>) -> Self
pub fn new_from_paths(b: Vec<BezPath>) -> Self
Creates a new BezGlyph from a vector of BezPaths.
Sourcepub fn next(&mut self) -> &mut BezPath
pub fn next(&mut self) -> &mut BezPath
Adds a new BezPath to the BezGlyph and returns a mutable reference to it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BezGlyph
impl RefUnwindSafe for BezGlyph
impl Send for BezGlyph
impl Sync for BezGlyph
impl Unpin for BezGlyph
impl UnwindSafe for BezGlyph
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more