pub struct ViewId(/* private fields */);
Implementations§
source§impl ViewId
impl ViewId
pub fn new(value: Vec<u8>) -> Self
pub fn from_bytes(bytes: &[u8]) -> Self
sourcepub fn from_hex(hex: &'static str) -> Self
pub fn from_hex(hex: &'static str) -> Self
Parses the given hex string into an ObjectId.
The given string must be valid. A static str is required to prevent API misuse.
sourcepub fn try_from_hex(hex: &str) -> Result<Self, FromHexError>
pub fn try_from_hex(hex: &str) -> Result<Self, FromHexError>
Parses the given hex string into an ObjectId.
Trait Implementations§
source§impl ContentHash for ViewId
impl ContentHash for ViewId
source§impl Ord for ViewId
impl Ord for ViewId
source§impl PartialEq for ViewId
impl PartialEq for ViewId
source§impl PartialOrd for ViewId
impl PartialOrd for ViewId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ViewId
impl StructuralPartialEq for ViewId
Auto Trait Implementations§
impl RefUnwindSafe for ViewId
impl Send for ViewId
impl Sync for ViewId
impl Unpin for ViewId
impl UnwindSafe for ViewId
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more