pub struct DocumentSnapshot {
pub uri: DocumentUri,
pub version: i32,
pub kind: DocumentKind,
pub source: SourceDescriptor,
pub text: Arc<str>,
pub source_map: SourceMap,
pub fences: Vec<FenceSnapshot>,
}Fields§
§uri: DocumentUri§version: i32§kind: DocumentKind§source: SourceDescriptor§text: Arc<str>§source_map: SourceMap§fences: Vec<FenceSnapshot>Implementations§
Source§impl DocumentSnapshot
impl DocumentSnapshot
pub fn byte_offset_for_position(&self, position: Position) -> Option<usize>
pub fn fence_at_position(&self, position: Position) -> Option<&FenceSnapshot>
Trait Implementations§
Source§impl Clone for DocumentSnapshot
impl Clone for DocumentSnapshot
Source§fn clone(&self) -> DocumentSnapshot
fn clone(&self) -> DocumentSnapshot
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 moreAuto Trait Implementations§
impl Freeze for DocumentSnapshot
impl RefUnwindSafe for DocumentSnapshot
impl Send for DocumentSnapshot
impl Sync for DocumentSnapshot
impl Unpin for DocumentSnapshot
impl UnsafeUnpin for DocumentSnapshot
impl UnwindSafe for DocumentSnapshot
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