Struct necsim_impls_std::lineage_file::loader::LineageFileLoader
source · pub struct LineageFileLoader { /* private fields */ }
Implementations§
source§impl LineageFileLoader
impl LineageFileLoader
sourcepub fn try_new(path: &Path) -> Result<Self>
pub fn try_new(path: &Path) -> Result<Self>
§Errors
Fails if the path
cannot be read as a list of lineages
pub fn into_lineages(self) -> Vec<Lineage>
pub fn get_lineages(&self) -> &[Lineage]
Trait Implementations§
source§impl Clone for LineageFileLoader
impl Clone for LineageFileLoader
source§fn clone(&self) -> LineageFileLoader
fn clone(&self) -> LineageFileLoader
Returns a copy of the value. Read more
1.0.0 · 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 LineageFileLoader
impl Debug for LineageFileLoader
source§impl<'de> Deserialize<'de> for LineageFileLoader
impl<'de> Deserialize<'de> for LineageFileLoader
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
Auto Trait Implementations§
impl Freeze for LineageFileLoader
impl RefUnwindSafe for LineageFileLoader
impl Send for LineageFileLoader
impl Sync for LineageFileLoader
impl Unpin for LineageFileLoader
impl UnwindSafe for LineageFileLoader
Blanket Implementations§
§impl<T> Backup for Twhere
T: Clone,
impl<T> Backup for Twhere
T: Clone,
default unsafe fn backup_unchecked(&self) -> T
default unsafe fn __contracts_impl_backup_unchecked(&self) -> T
fn backup(&self) -> BackedUp<Self>
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
§impl<T> ExtractDiscriminant for T
impl<T> ExtractDiscriminant for T
§type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
The type of the discriminant, which must satisfy the trait bounds
required by
core::mem::Discriminant
. Read more