pub enum RecFiled<T: Filable> {
unloaded {
path: PathBuf,
},
partially_loaded {
path: PathBuf,
data: T,
},
}Expand description
Recursive filed data type
T: Filable: Partially unfiled data type associated to the filed data type- This partially unfiled data type is not an unfiled data type
- Indeed, the unloading process is recursive for this structure
Variants§
Implementations§
source§impl<T: Filable> RecFiled<T>
impl<T: Filable> RecFiled<T>
sourcepub fn new_unloaded<P: AsRef<Path>>(path: P) -> Self
pub fn new_unloaded<P: AsRef<Path>>(path: P) -> Self
Builder for unloaded variant
path: P: path of serialization fileP: AsRef<Path>: type of the path- Output: the variant
sourcepub fn new_partially_loaded<P: AsRef<Path>>(path: P, data: T) -> Self
pub fn new_partially_loaded<P: AsRef<Path>>(path: P, data: T) -> Self
Builder for partially loaded variant
path: P: path of serialization filedata: T: partially unfiled dataP: AsRef<Path>: type of the path- Output: the variant
Trait Implementations§
source§impl<'de, T> Deserialize<'de> for RecFiled<T>where
T: Deserialize<'de> + Filable,
impl<'de, T> Deserialize<'de> for RecFiled<T>where
T: Deserialize<'de> + Filable,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T> Filable for RecFiled<T>
impl<T> Filable for RecFiled<T>
source§fn load<P: AsRef<Path>>(&mut self, prefix: P) -> Result<bool, String>
fn load<P: AsRef<Path>>(&mut self, prefix: P) -> Result<bool, String>
Load all missing data from files; bool indicates if already loaded (false) or not Read more
Auto Trait Implementations§
impl<T> RefUnwindSafe for RecFiled<T>where
T: RefUnwindSafe,
impl<T> Send for RecFiled<T>where
T: Send,
impl<T> Sync for RecFiled<T>where
T: Sync,
impl<T> Unpin for RecFiled<T>where
T: Unpin,
impl<T> UnwindSafe for RecFiled<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§impl<T> HashedTypeUuid for T
impl<T> HashedTypeUuid for T
§fn type_hash_native<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_native<REF>() -> u128where
Self: HashedTypeDef<REF>,
return native type hash
§fn type_hash_le<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_le<REF>() -> u128where
Self: HashedTypeDef<REF>,
return little endianess type hash
§fn type_hash_be<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_be<REF>() -> u128where
Self: HashedTypeDef<REF>,
return big endianess type hash
§fn type_uuid_hyphenated<REF>() -> Stringwhere
Self: HashedTypeDef<REF>,
fn type_uuid_hyphenated<REF>() -> Stringwhere
Self: HashedTypeDef<REF>,
return uuid hyphenated string
§fn self_type_hash_native<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
fn self_type_hash_native<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
return native type hash from instance
§fn self_type_hash_le<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
fn self_type_hash_le<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
return little endianess type hash from instance
§fn self_type_hash_be<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
fn self_type_hash_be<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
return big endianess type hash from instance
§fn self_type_uuid<REF>(&self) -> Uuidwhere
Self: HashedTypeDef<REF>,
fn self_type_uuid<REF>(&self) -> Uuidwhere
Self: HashedTypeDef<REF>,
return type hash-derived uuid from instance
§fn self_type_uuid_hyphenated<REF>(&self) -> Stringwhere
Self: HashedTypeDef<REF>,
fn self_type_uuid_hyphenated<REF>(&self) -> Stringwhere
Self: HashedTypeDef<REF>,
return uuid hyphenated string from instance