pub struct NodeSnapshot { /* private fields */ }Expand description
One finite directory or cell snapshot.
Implementations§
Source§impl NodeSnapshot
impl NodeSnapshot
Sourcepub fn collapsed_dir(
path: impl Into<String>,
name: impl Into<String>,
revision: u64,
) -> Self
pub fn collapsed_dir( path: impl Into<String>, name: impl Into<String>, revision: u64, ) -> Self
Creates a collapsed directory. No descendant payload is accepted.
Sourcepub fn expanded_dir(
path: impl Into<String>,
name: impl Into<String>,
revision: u64,
children: ChildPage,
) -> Self
pub fn expanded_dir( path: impl Into<String>, name: impl Into<String>, revision: u64, children: ChildPage, ) -> Self
Creates an expanded directory with a complete or truncated child page.
ChildPage::NotFetched remains valid and renders an empty expanded
directory, which is useful while a requested page is in flight.
Sourcepub fn collapsed_cell(
path: impl Into<String>,
name: impl Into<String>,
revision: u64,
) -> Self
pub fn collapsed_cell( path: impl Into<String>, name: impl Into<String>, revision: u64, ) -> Self
Creates a collapsed cell. Source, result, and receipt faces are absent.
Sourcepub fn expanded_cell(
path: impl Into<String>,
name: impl Into<String>,
revision: u64,
detail: NodeDetail,
) -> Self
pub fn expanded_cell( path: impl Into<String>, name: impl Into<String>, revision: u64, detail: NodeDetail, ) -> Self
Creates an expanded cell with bounded details.
Trait Implementations§
Source§impl Clone for NodeSnapshot
impl Clone for NodeSnapshot
Source§fn clone(&self) -> NodeSnapshot
fn clone(&self) -> NodeSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeSnapshot
impl Debug for NodeSnapshot
impl Eq for NodeSnapshot
Source§impl PartialEq for NodeSnapshot
impl PartialEq for NodeSnapshot
impl StructuralPartialEq for NodeSnapshot
Auto Trait Implementations§
impl Freeze for NodeSnapshot
impl RefUnwindSafe for NodeSnapshot
impl Send for NodeSnapshot
impl Sync for NodeSnapshot
impl Unpin for NodeSnapshot
impl UnsafeUnpin for NodeSnapshot
impl UnwindSafe for NodeSnapshot
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