pub struct InlineSegment {
pub text: String,
pub style: Arc<InlineTextStyle>,
}Expand description
A styled text segment with shared style.
Fields§
§text: String§style: Arc<InlineTextStyle>Trait Implementations§
Source§impl Clone for InlineSegment
impl Clone for InlineSegment
Source§impl Debug for InlineSegment
impl Debug for InlineSegment
Auto Trait Implementations§
impl Forget for InlineSegment
impl Freeze for InlineSegmentwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<InlineTextStyle> is !null: Freeze,
PhantomData<ArcInner<InlineTextStyle>>: Freeze,
impl Move for InlineSegment
impl RefUnwindSafe for InlineSegment
impl Send for InlineSegment
impl Sync for InlineSegment
impl Unpin for InlineSegment
impl UnsafeUnpin for InlineSegmentwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<InlineTextStyle> is !null: UnsafeUnpin,
PhantomData<ArcInner<InlineTextStyle>>: UnsafeUnpin,
impl UnwindSafe for InlineSegment
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