/// Private module to hide access to sealed trait mod private { /// Trait impossible to be implemented outside of this crate, seals other traits pubtrait Sealed {}
}
/// Implements needed types for all types of arrays (bigger than 32 don't have the default traits) #[doc(hidden)] pubtrait ArraySlice: private::Sealed { /// Capacity represented by type const CAPACITY: usize;
/// Returns slice of the entire array fn as_slice(&self) -> &[u8]; /// Returns mutable slice of the entire array unsafefn as_mut_slice(&mutself) -> &mut [u8]; /// Returns array filled with zeroes fn zeroed() -> Self;
}
/// Converts between `typenum` types and its corresponding array #[doc(hidden)] pubtrait Capacity: Unsigned + private::Sealed { /// Array with specified capacity type Array: ArraySlice + Copy;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.