pub struct Uid(/* private fields */);
Trait Implementations§
Source§impl FromByteSlice for Uid
impl FromByteSlice for Uid
Source§fn from_le_byte_slice(bytes: &[u8]) -> Uid
fn from_le_byte_slice(bytes: &[u8]) -> Uid
Deserialize the implementing type from a byte slice.
Source§fn bytes_expected() -> usize
fn bytes_expected() -> usize
Returns how many bytes are expected to deserialize a instance of the implementing type. Currently this method is only used for strings.
Source§impl Ord for Uid
impl Ord for Uid
Source§impl PartialOrd for Uid
impl PartialOrd for Uid
Source§impl ToBytes for Uid
impl ToBytes for Uid
fn write_to_slice(self, target: &mut [u8])
Source§fn try_to_le_byte_vec(
var: Self,
_max_len: usize,
) -> Result<Vec<u8>, BrickletError>where
Self: Sized,
fn try_to_le_byte_vec(
var: Self,
_max_len: usize,
) -> Result<Vec<u8>, BrickletError>where
Self: Sized,
Try to serialize the implementing type to a byte vector. If the type is shorter than max_len, it will be padded with zero bytes. Currently this method is only used for strings. Other types use the standard implementation, which calls
to_le_byte_vec
without further checks or padding. Read morefn try_write_to_slice(
self,
_max_len: usize,
target: &mut [u8],
) -> Result<(), BrickletError>where
Self: Sized,
impl Copy for Uid
impl Eq for Uid
impl StructuralPartialEq for Uid
Auto Trait Implementations§
impl Freeze for Uid
impl RefUnwindSafe for Uid
impl Send for Uid
impl Sync for Uid
impl Unpin for Uid
impl UnwindSafe for Uid
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