pub struct Taxonomy { /* private fields */ }Expand description
Structure of a taxonomy lattice
Implementations§
Source§impl Taxonomy
impl Taxonomy
Sourcepub fn into_taxon_builder(&self) -> TaxonomyBuilder
pub fn into_taxon_builder(&self) -> TaxonomyBuilder
Derive taxonomy builder from the taxonomy
- Output: taxonomy builder
Sourcepub fn new(root: &TaxonomyBuilder) -> Result<Taxonomy, String>
pub fn new(root: &TaxonomyBuilder) -> Result<Taxonomy, String>
Build Taxonomy from taxonomy builder
root: &TaxonomyBuilder: taxonomy builder of the root taxon- Output: a taxonomy or an error
Sourcepub fn rand_taxonomy<R: Rng>(rng: &mut R) -> Taxonomy
pub fn rand_taxonomy<R: Rng>(rng: &mut R) -> Taxonomy
Generate random taxonomy
rng: &mut R: random nuber generatorR: Rng: type of random number generator- Output: a random taxonomy
Trait Implementations§
Source§impl Archive for Taxonomy
impl Archive for Taxonomy
Source§impl<'de> Deserialize<'de> for Taxonomy
impl<'de> Deserialize<'de> for Taxonomy
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<__D: Fallible + ?Sized> Deserialize<Taxonomy, __D> for Archived<Taxonomy>where
Taxons: Archive,
Archived<Taxons>: Deserialize<Taxons, __D>,
SafeElement<u128slx>: Archive,
Archived<SafeElement<u128slx>>: Deserialize<SafeElement<u128slx>, __D>,
TaxonCoder: Archive,
Archived<TaxonCoder>: Deserialize<TaxonCoder, __D>,
HashMap<u128slx, String>: Archive,
Archived<HashMap<u128slx, String>>: Deserialize<HashMap<u128slx, String>, __D>,
HashMap<String, u128slx>: Archive,
Archived<HashMap<String, u128slx>>: Deserialize<HashMap<String, u128slx>, __D>,
Vec<u128slx>: Archive,
Archived<Vec<u128slx>>: Deserialize<Vec<u128slx>, __D>,
HashMap<u128slx, f64slx>: Archive,
Archived<HashMap<u128slx, f64slx>>: Deserialize<HashMap<u128slx, f64slx>, __D>,
impl<__D: Fallible + ?Sized> Deserialize<Taxonomy, __D> for Archived<Taxonomy>where
Taxons: Archive,
Archived<Taxons>: Deserialize<Taxons, __D>,
SafeElement<u128slx>: Archive,
Archived<SafeElement<u128slx>>: Deserialize<SafeElement<u128slx>, __D>,
TaxonCoder: Archive,
Archived<TaxonCoder>: Deserialize<TaxonCoder, __D>,
HashMap<u128slx, String>: Archive,
Archived<HashMap<u128slx, String>>: Deserialize<HashMap<u128slx, String>, __D>,
HashMap<String, u128slx>: Archive,
Archived<HashMap<String, u128slx>>: Deserialize<HashMap<String, u128slx>, __D>,
Vec<u128slx>: Archive,
Archived<Vec<u128slx>>: Deserialize<Vec<u128slx>, __D>,
HashMap<u128slx, f64slx>: Archive,
Archived<HashMap<u128slx, f64slx>>: Deserialize<HashMap<u128slx, f64slx>, __D>,
Source§impl HashedTypeDef for Taxonomywhere
(): HashedTypeDef,
impl HashedTypeDef for Taxonomywhere
(): HashedTypeDef,
Source§impl IterableLattice for Taxonomy
impl IterableLattice for Taxonomy
Source§type IntoIterUp = IntoIter<u128slx>
type IntoIterUp = IntoIter<u128slx>
Type of iterator for iterating lattice from bottom to top
Source§type IntoIterDown = IntoIter<u128slx>
type IntoIterDown = IntoIter<u128slx>
Type of iterator for iterating lattice from top to bottom
Source§unsafe fn unsafe_bottom_to_top(&self) -> Result<Self::IntoIterUp, String>
unsafe fn unsafe_bottom_to_top(&self) -> Result<Self::IntoIterUp, String>
Unsafe iterator of the full lattice, non decreasing with inference; Read more
Source§unsafe fn unsafe_top_to_bottom(&self) -> Result<Self::IntoIterDown, String>
unsafe fn unsafe_top_to_bottom(&self) -> Result<Self::IntoIterDown, String>
Unsafe iterator of the full lattice, non increasing with inference; Read more
Source§fn bottom_to_top(&self) -> Result<IntoIter<SafeElement<Self::Item>>, String>
fn bottom_to_top(&self) -> Result<IntoIter<SafeElement<Self::Item>>, String>
Safe iterator of the full lattice, non decreasing with inference; Read more
Source§fn top_to_bottom(&self) -> Result<IntoIter<SafeElement<Self::Item>>, String>
fn top_to_bottom(&self) -> Result<IntoIter<SafeElement<Self::Item>>, String>
Safe iterator of the full lattice, non increasing with inference; Read more
Source§impl Lattice for Taxonomy
impl Lattice for Taxonomy
Source§fn rand_element<R: Rng>(&self, rng: &mut R) -> SafeElement<Self::Item>
fn rand_element<R: Rng>(&self, rng: &mut R) -> SafeElement<Self::Item>
Random element generator (for tests); elements are built safe Read more
Source§fn ref_lattice_hash(&self) -> &u128slx
fn ref_lattice_hash(&self) -> &u128slx
Reference to lattice hash
Source§fn ref_bottom(&self) -> &SafeElement<Self::Item>
fn ref_bottom(&self) -> &SafeElement<Self::Item>
Reference to least element of the lattice Read more
Source§fn ref_top(&self) -> &SafeElement<Self::Item>
fn ref_top(&self) -> &SafeElement<Self::Item>
Reference to greatest element of the lattice Read more
Source§unsafe fn unsafe_meet(
&self,
element_left: &Self::Item,
element_right: &Self::Item,
) -> Self::Item
unsafe fn unsafe_meet( &self, element_left: &Self::Item, element_right: &Self::Item, ) -> Self::Item
Unsafe greatest lower bound Read more
Source§unsafe fn unsafe_join(
&self,
element_left: &Self::Item,
element_right: &Self::Item,
) -> Self::Item
unsafe fn unsafe_join( &self, element_left: &Self::Item, element_right: &Self::Item, ) -> Self::Item
Unsafe least upper bound Read more
Source§fn from_str(&self, s: &str) -> Result<SafeElement<Self::Item>, String>
fn from_str(&self, s: &str) -> Result<SafeElement<Self::Item>, String>
Parse safe element from str Read more
Source§fn to_string(&self, element: &SafeElement<Self::Item>) -> Result<String, String>
fn to_string(&self, element: &SafeElement<Self::Item>) -> Result<String, String>
Format safe element into String Read more
Source§fn lattice_hash(&self) -> u128slx
fn lattice_hash(&self) -> u128slx
Lattice hash Read more
Source§fn is_bottom(
&self,
safe_element: &SafeElement<Self::Item>,
) -> Result<bool, String>
fn is_bottom( &self, safe_element: &SafeElement<Self::Item>, ) -> Result<bool, String>
Is safe element the least element of the lattice? Read more
Source§fn is_top(&self, safe_element: &SafeElement<Self::Item>) -> Result<bool, String>
fn is_top(&self, safe_element: &SafeElement<Self::Item>) -> Result<bool, String>
Is safe element the greatest element of the lattice? Read more
Source§unsafe fn unsafe_is_bottom(&self, element: &Self::Item) -> bool
unsafe fn unsafe_is_bottom(&self, element: &Self::Item) -> bool
Is unsafe element the least element of the lattice? Read more
Source§unsafe fn unsafe_is_top(&self, element: &Self::Item) -> bool
unsafe fn unsafe_is_top(&self, element: &Self::Item) -> bool
Is unsafe element the greatest element of the lattice? Read more
Source§fn meet(
&self,
left: &SafeElement<Self::Item>,
right: &SafeElement<Self::Item>,
) -> Result<SafeElement<Self::Item>, String>
fn meet( &self, left: &SafeElement<Self::Item>, right: &SafeElement<Self::Item>, ) -> Result<SafeElement<Self::Item>, String>
Greatest lower bound Read more
Source§fn meet_some<'a, I>(&self, it: I) -> Result<SafeElement<Self::Item>, String>
fn meet_some<'a, I>(&self, it: I) -> Result<SafeElement<Self::Item>, String>
Greatest lower bound of a collection Read more
Source§fn join(
&self,
left: &SafeElement<Self::Item>,
right: &SafeElement<Self::Item>,
) -> Result<SafeElement<Self::Item>, String>
fn join( &self, left: &SafeElement<Self::Item>, right: &SafeElement<Self::Item>, ) -> Result<SafeElement<Self::Item>, String>
Least upper bound Read more
Source§fn join_some<'a, I>(&self, it: I) -> Result<SafeElement<Self::Item>, String>
fn join_some<'a, I>(&self, it: I) -> Result<SafeElement<Self::Item>, String>
Least upper bound of a collection Read more
Source§fn check_safe<T>(&self, element: T) -> Result<SafeElement<Self::Item>, String>
fn check_safe<T>(&self, element: T) -> Result<SafeElement<Self::Item>, String>
Check if unsafe element is in lattice and then build safe element Read more
Source§fn rand_elements<R: Rng, I>(
&self,
len: usize,
rng: &mut R,
) -> I::Type<SafeElement<Self::Item>>where
I: CollectionFamily1,
fn rand_elements<R: Rng, I>(
&self,
len: usize,
rng: &mut R,
) -> I::Type<SafeElement<Self::Item>>where
I: CollectionFamily1,
Elements collection generator (for tests); elements are built safe Read more
Source§fn assignment(&self) -> AssignmentBuilder<Self::Item>
fn assignment(&self) -> AssignmentBuilder<Self::Item>
Init a new assignment builder Read more
Source§fn assignment_with_capacity(
&self,
capacity: usize,
) -> AssignmentBuilder<Self::Item>
fn assignment_with_capacity( &self, capacity: usize, ) -> AssignmentBuilder<Self::Item>
Init a new assignment builder with capacity Read more
Source§fn prunable(
&self,
length_mid: u32,
length_max: u32,
) -> AssignmentBuilder<Self::Item>
fn prunable( &self, length_mid: u32, length_max: u32, ) -> AssignmentBuilder<Self::Item>
Init a new prunable assignment builder Read more
Source§fn prunable_with_capacity(
&self,
length_mid: u32,
length_max: u32,
capacity: usize,
) -> AssignmentBuilder<Self::Item>
fn prunable_with_capacity( &self, length_mid: u32, length_max: u32, capacity: usize, ) -> AssignmentBuilder<Self::Item>
Init a new prunable assignment builder with capacity Read more
Source§unsafe fn unsafe_cover(&self, left: &Self::Item, right: &Self::Item) -> bool
unsafe fn unsafe_cover(&self, left: &Self::Item, right: &Self::Item) -> bool
Unsafe test if left and right cover top, ie. union of left and right is top Read more
Source§unsafe fn unsafe_disjoint(&self, left: &Self::Item, right: &Self::Item) -> bool
unsafe fn unsafe_disjoint(&self, left: &Self::Item, right: &Self::Item) -> bool
Unsafe test if left and right are disjoint Read more
Source§unsafe fn unsafe_implies_join(
&self,
left: &Self::Item,
right: &Self::Item,
) -> bool
unsafe fn unsafe_implies_join( &self, left: &Self::Item, right: &Self::Item, ) -> bool
Unsafe test if left implies (i.e. is contained by) right Read more
Source§unsafe fn unsafe_implied_join(
&self,
left: &Self::Item,
right: &Self::Item,
) -> bool
unsafe fn unsafe_implied_join( &self, left: &Self::Item, right: &Self::Item, ) -> bool
Unsafe test if left is implied by (i.e. contains) right Read more
Source§unsafe fn unsafe_implies_meet(
&self,
left: &Self::Item,
right: &Self::Item,
) -> bool
unsafe fn unsafe_implies_meet( &self, left: &Self::Item, right: &Self::Item, ) -> bool
Unsafe test if left implies (i.e. is contained by) right Read more
Source§unsafe fn unsafe_implied_meet(
&self,
left: &Self::Item,
right: &Self::Item,
) -> bool
unsafe fn unsafe_implied_meet( &self, left: &Self::Item, right: &Self::Item, ) -> bool
Unsafe test if left is implied by (i.e. contains) right Read more
Source§fn cover(
&self,
left: &SafeElement<Self::Item>,
right: &SafeElement<Self::Item>,
) -> Result<bool, String>
fn cover( &self, left: &SafeElement<Self::Item>, right: &SafeElement<Self::Item>, ) -> Result<bool, String>
Test if left and right cover top, ie. union of left and right is top Read more
Source§fn disjoint(
&self,
left: &SafeElement<Self::Item>,
right: &SafeElement<Self::Item>,
) -> Result<bool, String>
fn disjoint( &self, left: &SafeElement<Self::Item>, right: &SafeElement<Self::Item>, ) -> Result<bool, String>
Test if left and right are disjoint Read more
Source§fn implies_join(
&self,
left: &SafeElement<Self::Item>,
right: &SafeElement<Self::Item>,
) -> Result<bool, String>
fn implies_join( &self, left: &SafeElement<Self::Item>, right: &SafeElement<Self::Item>, ) -> Result<bool, String>
Test if left implies (i.e. is contained by) right Read more
Source§fn implied_join(
&self,
left: &SafeElement<Self::Item>,
right: &SafeElement<Self::Item>,
) -> Result<bool, String>
fn implied_join( &self, left: &SafeElement<Self::Item>, right: &SafeElement<Self::Item>, ) -> Result<bool, String>
Test if left is implied by (i.e. contains) right Read more
Source§fn implies_meet(
&self,
left: &SafeElement<Self::Item>,
right: &SafeElement<Self::Item>,
) -> Result<bool, String>
fn implies_meet( &self, left: &SafeElement<Self::Item>, right: &SafeElement<Self::Item>, ) -> Result<bool, String>
Test if left implies (i.e. is contained by) right Read more
Source§fn implied_meet(
&self,
left: &SafeElement<Self::Item>,
right: &SafeElement<Self::Item>,
) -> Result<bool, String>
fn implied_meet( &self, left: &SafeElement<Self::Item>, right: &SafeElement<Self::Item>, ) -> Result<bool, String>
Test if left is implied by (i.e. contains) right Read more
Source§impl LatticeWithLeaves for Taxonomy
impl LatticeWithLeaves for Taxonomy
Source§unsafe fn unsafe_leaves(&self) -> Result<Self::IntoIterLeaves, String>
unsafe fn unsafe_leaves(&self) -> Result<Self::IntoIterLeaves, String>
Unsafe iterator of the weighted leaves of the lattice Read more
Source§unsafe fn unsafe_leaf(&self, u: usize) -> Result<&Self::Item, String>
unsafe fn unsafe_leaf(&self, u: usize) -> Result<&Self::Item, String>
Get unsafe leaf at rank
u Read moreSource§unsafe fn unsafe_weighted_leaf(
&self,
u: usize,
) -> Result<(&Self::Item, &f64slx), String>
unsafe fn unsafe_weighted_leaf( &self, u: usize, ) -> Result<(&Self::Item, &f64slx), String>
Get unsafe weighted leaf at rank
u Read moreSource§fn weighted_leaf(
&self,
u: usize,
) -> Result<(SafeElement<Self::Item>, f64slx), String>
fn weighted_leaf( &self, u: usize, ) -> Result<(SafeElement<Self::Item>, f64slx), String>
Get safe weighted leaf at rank
u Read moreSource§fn leaf(&self, u: usize) -> Result<SafeElement<Self::Item>, String>
fn leaf(&self, u: usize) -> Result<SafeElement<Self::Item>, String>
Get safe leaf at rank
u Read moreSource§fn leaves(&self) -> Result<IntoIter<(SafeElement<Self::Item>, f64slx)>, String>
fn leaves(&self) -> Result<IntoIter<(SafeElement<Self::Item>, f64slx)>, String>
Iterator of the safe weighted leaves of the lattice Read more
Source§fn mass_to_pignistic(
&self,
mass: &Assignment<Self::Item>,
) -> Result<Assignment<Self::Item>, String>
fn mass_to_pignistic( &self, mass: &Assignment<Self::Item>, ) -> Result<Assignment<Self::Item>, String>
Transform mass to pignistic probability Read more
Auto Trait Implementations§
impl Freeze for Taxonomy
impl RefUnwindSafe for Taxonomy
impl Send for Taxonomy
impl Sync for Taxonomy
impl Unpin for Taxonomy
impl UnwindSafe for Taxonomy
Blanket Implementations§
Source§impl<U> ArchSized for Uwhere
U: SlxData + Serialize<CompositeSerializer<AlignedSerializer<AlignedVec>, FallbackScratch<HeapScratch<silx_core::::traits::arch::{impl#0}::{constant#0}>, AllocScratch>, SharedSerializeMap>>,
impl<U> ArchSized for Uwhere
U: SlxData + Serialize<CompositeSerializer<AlignedSerializer<AlignedVec>, FallbackScratch<HeapScratch<silx_core::::traits::arch::{impl#0}::{constant#0}>, AllocScratch>, SharedSerializeMap>>,
Source§type Archivable = U
type Archivable = U
Type of the slx data
Source§fn arch_sized(&self) -> Result<ArchData<<U as ArchSized>::Archivable>, String>
fn arch_sized(&self) -> Result<ArchData<<U as ArchSized>::Archivable>, String>
Build the archive data from a slx data reference Read more
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§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> ArchiveUnsized for Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere
T: Archive,
Source§type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
The archived counterpart of this type. Unlike
Archive, it may be unsized. Read moreSource§type MetadataResolver = ()
type MetadataResolver = ()
The resolver for the metadata of this type. Read more
Source§unsafe fn resolve_metadata(
&self,
_: usize,
_: <T as ArchiveUnsized>::MetadataResolver,
_: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata,
)
unsafe fn resolve_metadata( &self, _: usize, _: <T as ArchiveUnsized>::MetadataResolver, _: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata, )
Creates the archived version of the metadata for this value at the given position and writes
it to the given output. Read more
Source§impl<L> BeliefTransform for L
impl<L> BeliefTransform for L
Source§fn mass_to_commonality(
&self,
mass: &Assignment<Self::Item>,
) -> Result<Assignment<Self::Item>, String>
fn mass_to_commonality( &self, mass: &Assignment<Self::Item>, ) -> Result<Assignment<Self::Item>, String>
Transform mass to commonality Read more
Source§fn mass_from_commonality(
&self,
commonality: &Assignment<Self::Item>,
) -> Result<Assignment<Self::Item>, String>
fn mass_from_commonality( &self, commonality: &Assignment<Self::Item>, ) -> Result<Assignment<Self::Item>, String>
Transform commonality to mass Read more
Source§fn mass_to_implicability(
&self,
mass: &Assignment<Self::Item>,
) -> Result<Assignment<Self::Item>, String>
fn mass_to_implicability( &self, mass: &Assignment<Self::Item>, ) -> Result<Assignment<Self::Item>, String>
Transform mass to implicability Read more
Source§fn mass_from_implicability(
&self,
implicability: &Assignment<Self::Item>,
) -> Result<Assignment<Self::Item>, String>
fn mass_from_implicability( &self, implicability: &Assignment<Self::Item>, ) -> Result<Assignment<Self::Item>, String>
Transform implicability to mass Read more
Source§fn mass_to_credibility(
&self,
mass: &Assignment<Self::Item>,
) -> Result<Assignment<Self::Item>, String>
fn mass_to_credibility( &self, mass: &Assignment<Self::Item>, ) -> Result<Assignment<Self::Item>, String>
Transform mass to credibility Read more
Source§fn mass_from_credibility(
&self,
credibility: &Assignment<Self::Item>,
) -> Result<Assignment<Self::Item>, String>
fn mass_from_credibility( &self, credibility: &Assignment<Self::Item>, ) -> Result<Assignment<Self::Item>, String>
Transform credibility to mass Read more
Source§fn mass_to_plausibility(
&self,
mass: &Assignment<Self::Item>,
) -> Result<Assignment<Self::Item>, String>
fn mass_to_plausibility( &self, mass: &Assignment<Self::Item>, ) -> Result<Assignment<Self::Item>, String>
Transform mass to plausibility Read more
Source§fn implicability_to_credibility(
&self,
implicability: &Assignment<Self::Item>,
) -> Result<Assignment<Self::Item>, String>
fn implicability_to_credibility( &self, implicability: &Assignment<Self::Item>, ) -> Result<Assignment<Self::Item>, String>
Transform implicability to credibility Read more
Source§fn implicability_from_credibility(
&self,
credibility: &Assignment<Self::Item>,
) -> Result<Assignment<Self::Item>, String>
fn implicability_from_credibility( &self, credibility: &Assignment<Self::Item>, ) -> Result<Assignment<Self::Item>, String>
Transform credibility to implicability Read more
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Source§impl<T> HashedTypeMethods for T
impl<T> HashedTypeMethods for T
Source§fn type_hash_native<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_native<REF>() -> u128where
Self: HashedTypeDef<REF>,
return native type hash
Source§fn type_hash_le<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_le<REF>() -> u128where
Self: HashedTypeDef<REF>,
return little endianess type hash
Source§fn type_hash_be<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_be<REF>() -> u128where
Self: HashedTypeDef<REF>,
return big endianess type hash
Source§fn type_uuid<REF>() -> Uuidwhere
Self: HashedTypeDef<REF>,
fn type_uuid<REF>() -> Uuidwhere
Self: HashedTypeDef<REF>,
return uuid derived from type hash
Source§fn type_uuid_hyphenated<REF>() -> Stringwhere
Self: HashedTypeDef<REF>,
fn type_uuid_hyphenated<REF>() -> Stringwhere
Self: HashedTypeDef<REF>,
return uuid hyphenated string
Source§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
Source§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
Source§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
Source§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
Source§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
Source§impl<T> HashedTypeUuid for T
impl<T> HashedTypeUuid for T
Source§fn type_hash_native<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_native<REF>() -> u128where
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods traitreturn native type hash
Source§fn type_hash_le<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_le<REF>() -> u128where
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods traitreturn little endianess type hash
Source§fn type_hash_be<REF>() -> u128where
Self: HashedTypeDef<REF>,
fn type_hash_be<REF>() -> u128where
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods traitreturn big endianess type hash
Source§fn type_uuid<REF>() -> Uuidwhere
Self: HashedTypeDef<REF>,
fn type_uuid<REF>() -> Uuidwhere
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods traitreturn uuid derived from type hash
Source§fn type_uuid_hyphenated<REF>() -> Stringwhere
Self: HashedTypeDef<REF>,
fn type_uuid_hyphenated<REF>() -> Stringwhere
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods traitreturn uuid hyphenated string
Source§fn self_type_hash_native<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
fn self_type_hash_native<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods traitreturn native type hash from instance
Source§fn self_type_hash_le<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
fn self_type_hash_le<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods traitreturn little endianess type hash from instance
Source§fn self_type_hash_be<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
fn self_type_hash_be<REF>(&self) -> u128where
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods traitreturn big endianess type hash from instance
Source§fn self_type_uuid<REF>(&self) -> Uuidwhere
Self: HashedTypeDef<REF>,
fn self_type_uuid<REF>(&self) -> Uuidwhere
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods traitreturn type hash-derived uuid from instance
Source§fn self_type_uuid_hyphenated<REF>(&self) -> Stringwhere
Self: HashedTypeDef<REF>,
fn self_type_uuid_hyphenated<REF>(&self) -> Stringwhere
Self: HashedTypeDef<REF>,
👎Deprecated since 0.1.2: please use
HashedTypeMethods traitreturn uuid hyphenated string from instance
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
Source§impl<T, S> SerializeUnsized<S> for T
impl<T, S> SerializeUnsized<S> for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.