pub enum ParentKind {
#[non_exhaustive] Bundle {
version_engine: RawStr,
bundle: Weak<BundleFile>,
dir_index: usize,
},
Web {
web: Weak<WebFile>,
},
}Expand description
A container kind, as the SerializedFile version chain and PPtr.deref
distinguish them.
Variants§
#[non_exhaustive]Bundle
A BundleFile, whose raw engine string chain 2 may take. Its fields
may grow (P1b’s sprites kind added dir_index), so a caller outside
the core matches it with .. and cannot build one.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
bundle: Weak<BundleFile>The bundle, for PPtr.deref’s scan of its files dict (rule 5):
weak, since the bundle holds its entries (Arc::new_cyclic at open).
§
dir_index: usizeThe directory row the child was opened from
(BundleFile::entry’s dir_index): of two rows of one path,
the child knows which it is, where files() names only the last.
Web
A WebFile, which gives no version.
Trait Implementations§
Source§impl Clone for ParentKind
impl Clone for ParentKind
Auto Trait Implementations§
impl !Freeze for ParentKind
impl !RefUnwindSafe for ParentKind
impl !UnwindSafe for ParentKind
impl Forget for ParentKind
impl Move for ParentKind
impl Send for ParentKind
impl Sync for ParentKind
impl Unpin for ParentKind
impl UnsafeUnpin for ParentKind
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