Trait typst_preview::SourceFileServer
source · pub trait SourceFileServer {
// Provided methods
fn resolve_source_span(
&mut self,
_by: Location,
) -> impl Future<Output = Result<Option<SourceSpanOffset>, Error>> + Send { ... }
fn resolve_document_position(
&mut self,
_by: Location,
) -> impl Future<Output = Result<Option<Position>, Error>> + Send { ... }
fn resolve_source_location(
&mut self,
_s: Span,
_offset: Option<usize>,
) -> impl Future<Output = Result<Option<DocToSrcJumpInfo>, Error>> + Send { ... }
}Provided Methods§
fn resolve_source_span( &mut self, _by: Location, ) -> impl Future<Output = Result<Option<SourceSpanOffset>, Error>> + Send
fn resolve_document_position( &mut self, _by: Location, ) -> impl Future<Output = Result<Option<Position>, Error>> + Send
fn resolve_source_location( &mut self, _s: Span, _offset: Option<usize>, ) -> impl Future<Output = Result<Option<DocToSrcJumpInfo>, Error>> + Send
Object Safety§
This trait is not object safe.