#[repr(u8)]pub enum ParadigmKind {
Instance = 0,
Semantic = 1,
Panoptic = 2,
}Expand description
Paradigm discriminator carried in the wire envelope header.
Stable u8 values: load-bearing across the format-version boundary
because cross-paradigm partials are rejected by integer compare on
this byte (see crate::error::PartialFormatErrorKind::ParadigmMismatch).
Variants§
Instance = 0
Instance detection (bbox / segm / boundary / keypoints) —
the AP fold from vernier-core.
Semantic = 1
Semantic segmentation — confusion-matrix fold from
vernier-semantic.
Panoptic = 2
Panoptic quality — per-category PqStat fold from
vernier-panoptic.
Implementations§
Source§impl ParadigmKind
impl ParadigmKind
Sourcepub fn from_u8(b: u8) -> Option<Self>
pub fn from_u8(b: u8) -> Option<Self>
Map a wire byte back to the typed enum. Returns None if the
byte is unknown — the receiver surfaces this as
PartialError::Format with kind
crate::error::PartialFormatErrorKind::ParadigmMismatch.
Trait Implementations§
Source§impl Clone for ParadigmKind
impl Clone for ParadigmKind
Source§fn clone(&self) -> ParadigmKind
fn clone(&self) -> ParadigmKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ParadigmKind
impl Debug for ParadigmKind
Source§impl Hash for ParadigmKind
impl Hash for ParadigmKind
Source§impl PartialEq for ParadigmKind
impl PartialEq for ParadigmKind
Source§fn eq(&self, other: &ParadigmKind) -> bool
fn eq(&self, other: &ParadigmKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ParadigmKind
impl Eq for ParadigmKind
impl StructuralPartialEq for ParadigmKind
Auto Trait Implementations§
impl Freeze for ParadigmKind
impl RefUnwindSafe for ParadigmKind
impl Send for ParadigmKind
impl Sync for ParadigmKind
impl Unpin for ParadigmKind
impl UnsafeUnpin for ParadigmKind
impl UnwindSafe for ParadigmKind
Blanket Implementations§
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> 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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.