pub struct SyntaxStream { /* private fields */ }Implementations§
Source§impl SyntaxStream
impl SyntaxStream
pub fn new<'a>(hint: impl Into<LanguageHint<'a>>) -> Self
pub fn source(&self) -> &str
pub const fn revision(&self) -> u64
pub fn highlights(&self) -> &Arc<DocumentHighlights> ⓘ
Trait Implementations§
Source§impl Clone for SyntaxStream
impl Clone for SyntaxStream
Source§fn clone(&self) -> SyntaxStream
fn clone(&self) -> SyntaxStream
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 SyntaxStream
impl Debug for SyntaxStream
Source§impl Default for SyntaxStream
impl Default for SyntaxStream
Source§fn default() -> SyntaxStream
fn default() -> SyntaxStream
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SyntaxStream
impl RefUnwindSafe for SyntaxStream
impl Send for SyntaxStream
impl Sync for SyntaxStream
impl Unpin for SyntaxStream
impl UnsafeUnpin for SyntaxStream
impl UnwindSafe for SyntaxStream
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