FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ProjectWorkspace

    struct · ferroui-designer-project · v0.5.0

    struct ProjectWorkspace
    

    View source

    Members

    solution

    solution: crate::Solution
    

    Source

    new

    fn new(solution: Solution) -> Self
    

    Source

    buffers

    fn buffers(self: &Self) -> impl Iterator<Item = &Buffer>
    

    Source

    buffer

    fn buffer(self: &Self, uri: &str) -> Option<&Buffer>
    

    Source

    active_uri

    fn active_uri(self: &Self) -> Option<&str>
    

    Source

    activate

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

    Source

    open

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

    Source

    create

    fn create(self: &mut Self, uri: impl Into<String>, source: impl Into<String>) -> Result<&Buffer>
    

    Source

    update_source

    fn update_source(self: &mut Self, uri: &str, expected_version: u64, source: impl Into<String>) -> Result<()>
    

    Source

    apply_updates

    fn apply_updates(self: &mut Self, updates: Vec<BufferUpdate>) -> Result<()>
    

    Validate all versions and candidates before committing any buffer in a refactoring.

    Source

    store_document

    fn store_document(self: &mut Self, uri: &str, expected_version: u64, document: Document) -> Result<()>
    

    Preserve the native designer's complete undo/redo history when storing an inactive tab.

    Source

    save

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

    Source

    acknowledge_saved

    fn acknowledge_saved(self: &mut Self, uri: &str, expected_version: u64, saved_source: impl Into<String>) -> Result<()>
    

    Record a successful host/provider save without IO or resetting tab history. The saved snapshot may predate current authored text after an asynchronous write.

    Source

    save_with_policy

    fn save_with_policy(self: &mut Self, uri: &str, policy: SavePolicy) -> Result<()>
    

    Source

    save_as

    fn save_as(self: &mut Self, uri: &str, path: impl AsRef<Path>) -> Result<String>
    

    Source

    close

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

    Source

    reload

    fn reload(self: &mut Self, uri: &str, discard: bool) -> Result<()>
    

    Source

    rename_document

    fn rename_document(self: &mut Self, uri: &str, new_path: impl AsRef<Path>) -> Result<String>
    

    Source

    register_resource

    fn register_resource(self: &mut Self, uri: impl Into<String>, path: impl AsRef<Path>) -> Result<()>
    

    Register a host-defined embedded-resource key without allowing it to bypass root checks.

    Source

    resolve_path

    fn resolve_path(self: &Self, uri: &str) -> Result<PathBuf>
    

    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

    Availability

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