pub struct CodeSpan { /* private fields */ }Expand description
Single syntax-highlighted span within a source code line.
Implementations§
Source§impl CodeSpan
impl CodeSpan
pub fn get_text(&self) -> &String
pub fn get_mut_text(&mut self) -> &mut String
pub fn set_text(&mut self, val: String) -> &mut Self
pub fn get_kind(&self) -> CodeTokenKind
pub fn get_mut_kind(&mut self) -> &mut CodeTokenKind
pub fn set_kind(&mut self, val: CodeTokenKind) -> &mut Self
Trait Implementations§
impl Eq for CodeSpan
impl StructuralPartialEq for CodeSpan
Auto Trait Implementations§
impl Forget for CodeSpan
impl Freeze for CodeSpan
impl Move for CodeSpan
impl RefUnwindSafe for CodeSpan
impl Send for CodeSpanwhere
RawVecInner: Send,
impl Sync for CodeSpanwhere
RawVecInner: Sync,
impl Unpin for CodeSpan
impl UnsafeUnpin for CodeSpan
impl UnwindSafe for CodeSpanwhere
RawVecInner: UnwindSafe,
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