pub struct Layout { /* private fields */ }Expand description
The canonical layout of a workspace.
Implementations§
Source§impl Layout
impl Layout
Sourcepub fn canonical(&self, kind: ResourceKind) -> &RelPath
pub fn canonical(&self, kind: ResourceKind) -> &RelPath
The canonical path for a resource kind.
Sourcepub fn node(&self, kind: ResourceKind) -> NodeKind
pub fn node(&self, kind: ResourceKind) -> NodeKind
The node kind of a canonical resource.
Sourcepub fn seeds(&self) -> impl Iterator<Item = (ResourceKind, &RelPath)>
pub fn seeds(&self) -> impl Iterator<Item = (ResourceKind, &RelPath)>
Paths that init should create so the workspace has a source of truth.
Trait Implementations§
impl Eq for Layout
impl StructuralPartialEq for Layout
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
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