pub struct InMemoryLineageReference(/* private fields */);
Implementations§
source§impl InMemoryLineageReference
impl InMemoryLineageReference
sourcepub unsafe fn issue(reference: usize) -> Self
pub unsafe fn issue(reference: usize) -> Self
§Safety
A new InMemoryLineageReference
must only be issued from a usize
to create a new and unique reference. It is not allowed to issue
multiple InMemoryLineageReference
s from the same usize
.
In case where a temporary and unexposed clone of the
InMemoryLineageReference
is required, use
[Backup::backup_unchecked
].
Trait Implementations§
source§impl Backup for InMemoryLineageReference
impl Backup for InMemoryLineageReference
unsafe fn backup_unchecked(&self) -> Self
fn backup(&self) -> BackedUp<Self>
source§impl ComputeTypeSet for InMemoryLineageReference
impl ComputeTypeSet for InMemoryLineageReference
source§impl Debug for InMemoryLineageReference
impl Debug for InMemoryLineageReference
source§impl<'a> From<&'a InMemoryLineageReference> for usize
impl<'a> From<&'a InMemoryLineageReference> for usize
source§fn from(reference: &'a InMemoryLineageReference) -> Self
fn from(reference: &'a InMemoryLineageReference) -> Self
Converts to this type from the input type.
source§impl From<InMemoryLineageReference> for usize
impl From<InMemoryLineageReference> for usize
source§fn from(reference: InMemoryLineageReference) -> Self
fn from(reference: InMemoryLineageReference) -> Self
Converts to this type from the input type.
source§impl Hash for InMemoryLineageReference
impl Hash for InMemoryLineageReference
source§impl<'a, M: MathsCore, H: Habitat<M>> Index<&'a InMemoryLineageReference> for ClassicalLineageStore<M, H>
impl<'a, M: MathsCore, H: Habitat<M>> Index<&'a InMemoryLineageReference> for ClassicalLineageStore<M, H>
source§impl<'a, M: MathsCore, H: Habitat<M>> Index<&'a InMemoryLineageReference> for GillespieLineageStore<M, H>
impl<'a, M: MathsCore, H: Habitat<M>> Index<&'a InMemoryLineageReference> for GillespieLineageStore<M, H>
source§impl<'a, M: MathsCore, H: SingletonDemesHabitat<M>> Index<&'a InMemoryLineageReference> for SingletonDemesLineageStore<M, H>
impl<'a, M: MathsCore, H: SingletonDemesHabitat<M>> Index<&'a InMemoryLineageReference> for SingletonDemesLineageStore<M, H>
source§impl PartialEq for InMemoryLineageReference
impl PartialEq for InMemoryLineageReference
source§fn eq(&self, other: &InMemoryLineageReference) -> bool
fn eq(&self, other: &InMemoryLineageReference) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TypeLayout for InMemoryLineageReference
impl TypeLayout for InMemoryLineageReference
§type Inhabited = <And<<usize as TypeLayout>::Inhabited, Inhabited> as ComputeInhabited>::Output
type Inhabited = <And<<usize as TypeLayout>::Inhabited, Inhabited> as ComputeInhabited>::Output
Marker type for whether the type is
inhabited or
uninhabited.
The associated type must be either [
inhabited::Inhabited
]
or [inhabited::Uninhabited
].source§const TYPE_LAYOUT: TypeLayoutInfo<'static> = _
const TYPE_LAYOUT: TypeLayoutInfo<'static> = _
Shallow layout of the type.
impl Eq for InMemoryLineageReference
impl<M: MathsCore, H: Habitat<M>> LineageReference<M, H> for InMemoryLineageReference
impl StructuralPartialEq for InMemoryLineageReference
Auto Trait Implementations§
impl Freeze for InMemoryLineageReference
impl RefUnwindSafe for InMemoryLineageReference
impl Send for InMemoryLineageReference
impl Sync for InMemoryLineageReference
impl Unpin for InMemoryLineageReference
impl UnwindSafe for InMemoryLineageReference
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. 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§impl<T> TypeGraphLayout for Twhere
T: TypeLayout + ComputeTypeSet,
impl<T> TypeGraphLayout for Twhere
T: TypeLayout + ComputeTypeSet,
§const TYPE_GRAPH: TypeLayoutGraph<'static> = _
const TYPE_GRAPH: TypeLayoutGraph<'static> = _
Shallow layout of the type.