Enum flo_canvas::TextAlignment
source · pub enum TextAlignment {
Left,
Right,
Center,
}
Expand description
Determines how text is drawn relative to its alignment’s origin point
Variants§
Trait Implementations§
source§impl<'a> CanvasEncoding<String> for TextAlignment
impl<'a> CanvasEncoding<String> for TextAlignment
source§fn encode_canvas(&self, append_to: &mut String)
fn encode_canvas(&self, append_to: &mut String)
Encodes this item by appending it to the specified string
source§impl Clone for TextAlignment
impl Clone for TextAlignment
source§fn clone(&self) -> TextAlignment
fn clone(&self) -> TextAlignment
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 TextAlignment
impl Debug for TextAlignment
source§impl<'de> Deserialize<'de> for TextAlignment
impl<'de> Deserialize<'de> for TextAlignment
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<TextAlignment> for TextAlignment
impl PartialEq<TextAlignment> for TextAlignment
source§fn eq(&self, other: &TextAlignment) -> bool
fn eq(&self, other: &TextAlignment) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.