#[non_exhaustive]pub enum InputMetadataKey {
PatchGrid,
PatchPositions,
AudioMask,
}Expand description
Architecture-neutral metadata attached to a prepared input part.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PatchGrid
One or more (time, height, width) patch-grid rows.
PatchPositions
Explicit spatial or temporal patch coordinates, including padding.
AudioMask
Valid-frame or valid-feature mask for audio.
Implementations§
Source§impl InputMetadataKey
impl InputMetadataKey
Sourcepub const fn accepts(self, modality: InputModality) -> bool
pub const fn accepts(self, modality: InputModality) -> bool
Returns whether this metadata is meaningful for modality.
Trait Implementations§
Source§impl Clone for InputMetadataKey
impl Clone for InputMetadataKey
Source§fn clone(&self) -> InputMetadataKey
fn clone(&self) -> InputMetadataKey
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 moreimpl Copy for InputMetadataKey
Source§impl Debug for InputMetadataKey
impl Debug for InputMetadataKey
Source§impl<'de> Deserialize<'de> for InputMetadataKey
impl<'de> Deserialize<'de> for InputMetadataKey
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
impl Eq for InputMetadataKey
Source§impl Hash for InputMetadataKey
impl Hash for InputMetadataKey
Source§impl Ord for InputMetadataKey
impl Ord for InputMetadataKey
Source§fn cmp(&self, other: &InputMetadataKey) -> Ordering
fn cmp(&self, other: &InputMetadataKey) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for InputMetadataKey
impl PartialEq for InputMetadataKey
Source§impl PartialOrd for InputMetadataKey
impl PartialOrd for InputMetadataKey
Source§impl Serialize for InputMetadataKey
impl Serialize for InputMetadataKey
impl StructuralPartialEq for InputMetadataKey
Auto Trait Implementations§
impl Freeze for InputMetadataKey
impl RefUnwindSafe for InputMetadataKey
impl Send for InputMetadataKey
impl Sync for InputMetadataKey
impl Unpin for InputMetadataKey
impl UnsafeUnpin for InputMetadataKey
impl UnwindSafe for InputMetadataKey
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