#[repr(C)]pub struct StyledTextRun {
pub text: AzString,
pub font_family: OptionString,
pub font_size_px: f32,
pub color: ColorU,
pub is_bold: bool,
pub is_italic: bool,
}Expand description
Styled text run for rich clipboard content
Fields§
§text: AzStringThe actual text content
font_family: OptionStringFont family name
font_size_px: f32Font size in pixels
color: ColorUText color
is_bold: boolWhether text is bold
is_italic: boolWhether text is italic
Trait Implementations§
Source§impl Clone for StyledTextRun
impl Clone for StyledTextRun
Source§fn clone(&self) -> StyledTextRun
fn clone(&self) -> StyledTextRun
Returns a duplicate 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 StyledTextRun
impl Debug for StyledTextRun
Source§impl FromIterator<StyledTextRun> for StyledTextRunVec
impl FromIterator<StyledTextRun> for StyledTextRunVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = StyledTextRun>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = StyledTextRun>,
Creates a value from an iterator. Read more
Source§impl PartialEq for StyledTextRun
impl PartialEq for StyledTextRun
impl StructuralPartialEq for StyledTextRun
Auto Trait Implementations§
impl Freeze for StyledTextRun
impl RefUnwindSafe for StyledTextRun
impl Send for StyledTextRun
impl Sync for StyledTextRun
impl Unpin for StyledTextRun
impl UnwindSafe for StyledTextRun
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more