pub struct ValueCodecId(/* private fields */);Expand description
A validated, process-independent value-codec identifier.
§Examples
use qubit_codec::ValueCodecId;
let id = ValueCodecId::new("example.u16");
assert_eq!(id.as_str(), "example.u16");Implementations§
Trait Implementations§
Source§impl Borrow<str> for ValueCodecId
impl Borrow<str> for ValueCodecId
Source§impl Clone for ValueCodecId
impl Clone for ValueCodecId
Source§fn clone(&self) -> ValueCodecId
fn clone(&self) -> ValueCodecId
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 ValueCodecId
Source§impl Debug for ValueCodecId
impl Debug for ValueCodecId
impl Eq for ValueCodecId
Source§impl Hash for ValueCodecId
impl Hash for ValueCodecId
Source§impl Ord for ValueCodecId
impl Ord for ValueCodecId
Source§fn cmp(&self, other: &ValueCodecId) -> Ordering
fn cmp(&self, other: &ValueCodecId) -> 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 ValueCodecId
impl PartialEq for ValueCodecId
Source§impl PartialOrd for ValueCodecId
impl PartialOrd for ValueCodecId
impl StructuralPartialEq for ValueCodecId
Auto Trait Implementations§
impl Freeze for ValueCodecId
impl RefUnwindSafe for ValueCodecId
impl Send for ValueCodecId
impl Sync for ValueCodecId
impl Unpin for ValueCodecId
impl UnsafeUnpin for ValueCodecId
impl UnwindSafe for ValueCodecId
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