pub struct AttributeRun { /* private fields */ }Implementations§
Source§impl AttributeRun
impl AttributeRun
pub const fn new(range: TextRange, attributes: TextAttributes) -> Self
pub const fn range(&self) -> TextRange
pub const fn attributes(&self) -> &TextAttributes
Trait Implementations§
Source§impl Clone for AttributeRun
impl Clone for AttributeRun
Source§fn clone(&self) -> AttributeRun
fn clone(&self) -> AttributeRun
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AttributeRun
impl Debug for AttributeRun
Source§impl PartialEq for AttributeRun
impl PartialEq for AttributeRun
Source§fn eq(&self, other: &AttributeRun) -> bool
fn eq(&self, other: &AttributeRun) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AttributeRun
Auto Trait Implementations§
impl Freeze for AttributeRun
impl RefUnwindSafe for AttributeRun
impl Send for AttributeRun
impl Sync for AttributeRun
impl Unpin for AttributeRun
impl UnsafeUnpin for AttributeRun
impl UnwindSafe for AttributeRun
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