Struct uniffi::MetadataBuffer
pub struct MetadataBuffer {
pub bytes: [u8; 16384],
pub size: usize,
}
Fields§
§bytes: [u8; 16384]
§size: usize
Implementations§
§impl MetadataBuffer
impl MetadataBuffer
pub const fn new() -> MetadataBuffer
pub const fn from_code(value: u8) -> MetadataBuffer
pub const fn concat(self, other: MetadataBuffer) -> MetadataBuffer
pub const fn concat_value(self, value: u8) -> MetadataBuffer
pub const fn concat_u32(self, value: u32) -> MetadataBuffer
pub const fn concat_bool(self, value: bool) -> MetadataBuffer
pub const fn concat_option_bool(self, value: Option<bool>) -> MetadataBuffer
pub const fn concat_str(self, string: &str) -> MetadataBuffer
pub const fn concat_long_str(self, string: &str) -> MetadataBuffer
pub const fn into_array<const SIZE: usize>(self) -> [u8; SIZE]
pub const fn checksum(&self) -> u16
Trait Implementations§
§impl AsRef<[u8]> for MetadataBuffer
impl AsRef<[u8]> for MetadataBuffer
Auto Trait Implementations§
impl RefUnwindSafe for MetadataBuffer
impl Send for MetadataBuffer
impl Sync for MetadataBuffer
impl Unpin for MetadataBuffer
impl UnwindSafe for MetadataBuffer
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<T, UT> HandleAlloc<UT> for Twhere
T: Send + Sync,
impl<T, UT> HandleAlloc<UT> for Twhere T: Send + Sync,
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>