pub struct Workspace { /* private fields */ }Expand description
Process-global workspace root.
Holds the root Node and base filesystem path.
Implementations§
Source§impl Workspace
impl Workspace
pub fn workflow() -> Result<Arc<Workflow>>
pub fn create(path: Arc<PathBuf>) -> Result<Sheet>
pub fn save() -> Result<()>
pub fn save_all() -> Result<()>
pub fn compact() -> Result<()>
pub fn sheet() -> Result<Sheet>
pub fn catalog() -> Result<Vec<Arc<Sheet>>>
pub fn contains_node(identifier: &str) -> Result<bool>
pub fn add_node(identifier: &str, parameters: &str) -> Result<Arc<Reference>>
pub fn copy_node(from: Arc<str>, to: Arc<str>) -> Result<()>
pub fn get_node(identifier: &str) -> Result<Node>
pub fn rename_node(from: &str, to: Arc<str>) -> Result<()>
pub fn remove_node(identifier: &str) -> Result<()>
Sourcepub fn locate_node(locator: &Reference) -> Result<Node>
pub fn locate_node(locator: &Reference) -> Result<Node>
Auto Trait Implementations§
impl Freeze for Workspace
impl RefUnwindSafe for Workspace
impl Send for Workspace
impl Sync for Workspace
impl Unpin for Workspace
impl UnwindSafe for Workspace
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