Union calc_common::DrawableCharacter
source · #[repr(C)]
pub union DrawableCharacter {
pub character: Character,
pub extended_character: ExtendedCharacter,
}
Expand description
Represents either a Character or an ExtendedCharacter
Fields§
§character: Character
§extended_character: ExtendedCharacter
Implementations§
source§impl DrawableCharacter
impl DrawableCharacter
sourcepub const fn get(self) -> GetDrawableCharacter
pub const fn get(self) -> GetDrawableCharacter
Gets self
as either a Character or an ExtendedCharacter
pub const fn id(self) -> u8
Trait Implementations§
source§impl AsMut<DrawableCharacter> for Character
impl AsMut<DrawableCharacter> for Character
source§fn as_mut(&mut self) -> &mut DrawableCharacter
fn as_mut(&mut self) -> &mut DrawableCharacter
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsMut<DrawableCharacter> for ExtendedCharacter
impl AsMut<DrawableCharacter> for ExtendedCharacter
source§fn as_mut(&mut self) -> &mut DrawableCharacter
fn as_mut(&mut self) -> &mut DrawableCharacter
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsRef<DrawableCharacter> for Character
impl AsRef<DrawableCharacter> for Character
source§fn as_ref(&self) -> &DrawableCharacter
fn as_ref(&self) -> &DrawableCharacter
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<DrawableCharacter> for ExtendedCharacter
impl AsRef<DrawableCharacter> for ExtendedCharacter
source§fn as_ref(&self) -> &DrawableCharacter
fn as_ref(&self) -> &DrawableCharacter
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for DrawableCharacter
impl Clone for DrawableCharacter
source§fn clone(&self) -> DrawableCharacter
fn clone(&self) -> DrawableCharacter
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 moresource§impl From<Character> for DrawableCharacter
impl From<Character> for DrawableCharacter
source§impl From<ExtendedCharacter> for DrawableCharacter
impl From<ExtendedCharacter> for DrawableCharacter
source§fn from(extended_character: ExtendedCharacter) -> Self
fn from(extended_character: ExtendedCharacter) -> Self
Converts to this type from the input type.
source§impl PartialEq<DrawableCharacter> for DrawableCharacter
impl PartialEq<DrawableCharacter> for DrawableCharacter
source§impl TransmutableFrom<Character> for DrawableCharacter
impl TransmutableFrom<Character> for DrawableCharacter
fn transmute_from(val: Character) -> Self
fn transmute_slice_from(val: &[T]) -> &[Self]
fn transmute_slice_from_mut(val: &mut [T]) -> &mut [Self]
source§impl TransmutableFrom<ExtendedCharacter> for DrawableCharacter
impl TransmutableFrom<ExtendedCharacter> for DrawableCharacter
fn transmute_from(val: ExtendedCharacter) -> Self
fn transmute_slice_from(val: &[T]) -> &[Self]
fn transmute_slice_from_mut(val: &mut [T]) -> &mut [Self]
impl Copy for DrawableCharacter
impl Eq for DrawableCharacter
Auto Trait Implementations§
impl RefUnwindSafe for DrawableCharacter
impl Send for DrawableCharacter
impl Sync for DrawableCharacter
impl Unpin for DrawableCharacter
impl UnwindSafe for DrawableCharacter
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