Struct notan_glyph::GlyphInstance
source · [−]#[repr(C)]pub struct GlyphInstance {
pub left_top: [f32; 3],
pub right_bottom: [f32; 2],
pub tex_left_top: [f32; 2],
pub tex_right_bottom: [f32; 2],
pub color: [f32; 4],
}
Fields
left_top: [f32; 3]
right_bottom: [f32; 2]
tex_left_top: [f32; 2]
tex_right_bottom: [f32; 2]
color: [f32; 4]
Implementations
sourceimpl GlyphInstance
impl GlyphInstance
pub fn from_vertex(_: GlyphVertex<'_>) -> GlyphInstance
Trait Implementations
sourceimpl Clone for GlyphInstance
impl Clone for GlyphInstance
sourcefn clone(&self) -> GlyphInstance
fn clone(&self) -> GlyphInstance
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for GlyphInstance
impl Debug for GlyphInstance
impl Copy for GlyphInstance
impl Pod for GlyphInstance
Auto Trait Implementations
impl RefUnwindSafe for GlyphInstance
impl Send for GlyphInstance
impl Sync for GlyphInstance
impl Unpin for GlyphInstance
impl UnwindSafe for GlyphInstance
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
. Read moresourcefn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read morefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read morefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read morefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more