FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    LanguageService

    struct · ferroui-designer-language · v0.5.0

    struct LanguageService
    

    View source

    Members

    new

    fn new(schema: Schema) -> Self
    

    Source

    schema

    fn schema(self: &Self) -> &Schema
    

    Source

    schema_mut

    fn schema_mut(self: &mut Self) -> &mut Schema
    

    Source

    document

    fn document(self: &Self, uri: &str) -> Option<&Document>
    

    Source

    version

    fn version(self: &Self, uri: &str) -> Option<i64>
    

    Source

    index

    fn index(self: &Self, uri: &str) -> Result<&LineIndex>
    

    Source

    uris

    fn uris(self: &Self) -> impl Iterator<Item = &str>
    

    Source

    open

    fn open(self: &mut Self, uri: impl Into<String>, source: impl Into<String>, version: i64) -> Result<()>
    

    Source

    close

    fn close(self: &mut Self, uri: &str) -> Result<()>
    

    Source

    replace

    fn replace(self: &mut Self, uri: &str, source: impl Into<String>, version: i64) -> Result<()>
    

    Source

    change

    fn change(self: &mut Self, uri: &str, version: i64, changes: &[TextChange]) -> Result<()>
    

    Source

    index_solution

    fn index_solution(self: &mut Self, solution: &ferroui_designer_project::Solution) -> Result<usize>
    

    Source

    remove_solution

    fn remove_solution(self: &mut Self, root: impl AsRef<std::path::Path>) -> usize
    

    Remove a workspace's disk snapshots while preserving open buffers and shared roots.

    Source

    diagnostics

    fn diagnostics(self: &Self, uri: &str) -> Result<Vec<Diagnostic>>
    

    Source

    completions

    fn completions(self: &Self, uri: &str, offset: usize) -> Result<Vec<Completion>>
    

    Source

    hover

    fn hover(self: &Self, uri: &str, offset: usize) -> Result<Option<Hover>>
    

    Source

    signature_help

    fn signature_help(self: &Self, uri: &str, offset: usize) -> Result<Option<SignatureHelp>>
    

    Source

    definitions

    fn definitions(self: &Self, uri: &str, offset: usize) -> Result<Vec<Location>>
    

    Source

    references

    fn references(self: &Self, uri: &str, offset: usize) -> Result<Vec<Location>>
    

    Source

    references_with_declarations

    fn references_with_declarations(self: &Self, uri: &str, offset: usize, include: bool) -> Result<Vec<Location>>
    

    Source

    rename

    fn rename(self: &Self, uri: &str, offset: usize, new_name: &str) -> Result<WorkspaceEdit>
    

    Source

    apply_workspace_edit

    fn apply_workspace_edit(self: &mut Self, edit: &WorkspaceEdit) -> Result<()>
    

    Source

    format

    fn format(self: &Self, uri: &str, options: FormattingOptions) -> Result<Vec<TextEdit>>
    

    Source

    symbols

    fn symbols(self: &Self, uri: &str) -> Result<Vec<DocumentSymbol>>
    

    Source

    folding

    fn folding(self: &Self, uri: &str) -> Result<Vec<FoldingRange>>
    

    Source

    semantic_tokens

    fn semantic_tokens(self: &Self, uri: &str) -> Result<Vec<SemanticToken>>
    

    Token types: type, property, string, comment, variable, keyword, number, namespace.

    Source

    workspace_symbols

    fn workspace_symbols(self: &Self, query: &str) -> Result<Vec<(String, DocumentSymbol)>>
    

    Source

    resource_uri

    fn resource_uri(self: &Self, base: &str, reference: &str) -> Result<String>
    

    Source

    prepare_rename

    fn prepare_rename(self: &Self, uri: &str, offset: usize) -> Result<Option<(Range, String)>>
    

    Source

    mark_saved

    fn mark_saved(self: &mut Self, uri: &str, text: Option<&str>) -> Result<()>
    

    Source

    rename_uri

    fn rename_uri(self: &mut Self, old: &str, new: &str) -> Result<()>
    

    Source

    rename_uris

    fn rename_uris(self: &mut Self, renames: &[(String, String)]) -> Result<()>
    

    Validate an entire client rename notification before moving any indexed state. A swap is legal; overwriting an unrelated document is not.

    Source

    file_rename_edits

    fn file_rename_edits(self: &Self, old: &str, new: &str) -> Result<WorkspaceEdit>
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • Clone
    • Default

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.