Struct aarty::FragmentInfo
source · pub struct FragmentInfo {
pub sym: char,
pub sym_index: usize,
pub fg: ANSIColor,
}Expand description
the fragment (a.k.a. pixel) information.
Fields§
§sym: charthe character that had chosen from the sympols set to represent this pixel.
sym_index: usizeThe sympol index in the sympols set (might be useful if you want to store this info in memory
and happen that you know that the symplos set size arn’t gonna more then u8::MAX)
fg: ANSIColorThe pixel color in ANSI representation.
Trait Implementations§
source§impl Clone for FragmentInfo
impl Clone for FragmentInfo
source§fn clone(&self) -> FragmentInfo
fn clone(&self) -> FragmentInfo
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 Debug for FragmentInfo
impl Debug for FragmentInfo
source§impl From<FragmentInfo> for Fragment
impl From<FragmentInfo> for Fragment
source§fn from(v: FragmentInfo) -> Self
fn from(v: FragmentInfo) -> Self
Converts to this type from the input type.
source§impl From<FragmentInfo> for IndexdFragment
impl From<FragmentInfo> for IndexdFragment
source§fn from(v: FragmentInfo) -> Self
fn from(v: FragmentInfo) -> Self
Converts to this type from the input type.
source§impl Hash for FragmentInfo
impl Hash for FragmentInfo
source§impl PartialEq for FragmentInfo
impl PartialEq for FragmentInfo
source§fn eq(&self, other: &FragmentInfo) -> bool
fn eq(&self, other: &FragmentInfo) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for FragmentInfo
impl PartialOrd for FragmentInfo
source§fn partial_cmp(&self, other: &FragmentInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &FragmentInfo) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl StructuralPartialEq for FragmentInfo
Auto Trait Implementations§
impl RefUnwindSafe for FragmentInfo
impl Send for FragmentInfo
impl Sync for FragmentInfo
impl Unpin for FragmentInfo
impl UnwindSafe for FragmentInfo
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