pub struct DisplayTextFragment<'a> {
pub content: &'a str,
pub style: DisplayTextStyle,
}
Expand description
An inline text fragment which any label is composed of.
Fields§
§content: &'a str
§style: DisplayTextStyle
Trait Implementations§
source§impl<'a> Debug for DisplayTextFragment<'a>
impl<'a> Debug for DisplayTextFragment<'a>
source§impl<'a> PartialEq for DisplayTextFragment<'a>
impl<'a> PartialEq for DisplayTextFragment<'a>
source§fn eq(&self, other: &DisplayTextFragment<'a>) -> bool
fn eq(&self, other: &DisplayTextFragment<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> StructuralPartialEq for DisplayTextFragment<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for DisplayTextFragment<'a>
impl<'a> Send for DisplayTextFragment<'a>
impl<'a> Sync for DisplayTextFragment<'a>
impl<'a> Unpin for DisplayTextFragment<'a>
impl<'a> UnwindSafe for DisplayTextFragment<'a>
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