pub enum HaTextFragment {
NewLine,
Text {
text: String,
params: HaTextFragmentParams,
},
}Variants§
Implementations§
source§impl HaTextFragment
impl HaTextFragment
pub fn text(text: impl ToString) -> Self
pub fn glyphs_count(&self) -> usize
pub fn elements_count(&self) -> usize
Trait Implementations§
source§impl Clone for HaTextFragment
impl Clone for HaTextFragment
source§fn clone(&self) -> HaTextFragment
fn clone(&self) -> HaTextFragment
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 HaTextFragment
impl Debug for HaTextFragment
source§impl Default for HaTextFragment
impl Default for HaTextFragment
source§impl<'de> Deserialize<'de> for HaTextFragment
impl<'de> Deserialize<'de> for HaTextFragment
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<HaTextFragment> for HaTextFragment
impl PartialEq<HaTextFragment> for HaTextFragment
source§fn eq(&self, other: &HaTextFragment) -> bool
fn eq(&self, other: &HaTextFragment) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for HaTextFragment
impl Serialize for HaTextFragment
impl StructuralPartialEq for HaTextFragment
Auto Trait Implementations§
impl RefUnwindSafe for HaTextFragment
impl Send for HaTextFragment
impl Sync for HaTextFragment
impl Unpin for HaTextFragment
impl UnwindSafe for HaTextFragment
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
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more