Struct buffer_graphics_lib::text::Text  
source · pub struct Text { /* private fields */ }Implementations§
source§impl Text
 
impl Text
pub fn pos(&self) -> TextPos
pub fn formatting(&self) -> &TextFormat
sourcepub fn with_formatting<F: Into<TextFormat>>(&self, format: F) -> Self
 
pub fn with_formatting<F: Into<TextFormat>>(&self, format: F) -> Self
As text wrapping is calculated when the text object is created changing it as no effect
pub fn with_color(&self, color: Color) -> Self
pub fn with_pos<P: Into<TextPos>>(&self, pos: P) -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for Text
 
impl<'de> Deserialize<'de> for Text
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Text
 
impl PartialEq for Text
impl Eq for Text
impl StructuralEq for Text
impl StructuralPartialEq for Text
Auto Trait Implementations§
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnwindSafe for Text
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