pub struct SyntaxSpan {
pub version: u32,
pub range: CodeRange,
pub paint: Paint,
}Expand description
One colour run of the syntax.
A paint rather than a colour, and in practice a role: the code colour roles are what a highlighter on this side maps its token kinds onto, so the same run comes out in the right colour under every design system and in both light and dark.
Fields§
§version: u32§range: CodeRange§paint: PaintImplementations§
Trait Implementations§
Source§impl Clone for SyntaxSpan
impl Clone for SyntaxSpan
impl Copy for SyntaxSpan
Source§impl Debug for SyntaxSpan
impl Debug for SyntaxSpan
Source§impl PartialEq for SyntaxSpan
impl PartialEq for SyntaxSpan
impl StructuralPartialEq for SyntaxSpan
Auto Trait Implementations§
impl Freeze for SyntaxSpan
impl RefUnwindSafe for SyntaxSpan
impl Send for SyntaxSpan
impl Sync for SyntaxSpan
impl Unpin for SyntaxSpan
impl UnsafeUnpin for SyntaxSpan
impl UnwindSafe for SyntaxSpan
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