pub struct CompositionSegment {
pub range: Range<usize>,
pub style: SegmentStyle,
}Expand description
A styled stretch of a composition.
Fields§
§range: Range<usize>Relative to the composition’s start, in characters.
style: SegmentStyleTrait Implementations§
Source§impl Clone for CompositionSegment
impl Clone for CompositionSegment
Source§impl Debug for CompositionSegment
impl Debug for CompositionSegment
impl Eq for CompositionSegment
Source§impl PartialEq for CompositionSegment
impl PartialEq for CompositionSegment
impl StructuralPartialEq for CompositionSegment
Auto Trait Implementations§
impl Freeze for CompositionSegment
impl RefUnwindSafe for CompositionSegment
impl Send for CompositionSegment
impl Sync for CompositionSegment
impl Unpin for CompositionSegment
impl UnsafeUnpin for CompositionSegment
impl UnwindSafe for CompositionSegment
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