[−][src]Struct ducc::Bytes
Reference to a JavaScript Uint8Array
.
Implementations
impl<'ducc> Bytes<'ducc>
[src]
pub fn to_vec(&self) -> Vec<u8>
[src]
Extracts the byte data from JavaScript into a Vec<u8>
.
pub fn into_object(self) -> Object<'ducc>
[src]
Consumes the buffer and returns it as a JavaScript object. This is inexpensive, since a buffer is an object.
Trait Implementations
impl<'ducc> Clone for Bytes<'ducc>
[src]
impl<'ducc> Debug for Bytes<'ducc>
[src]
impl<'ducc> FromValue<'ducc> for Bytes<'ducc>
[src]
impl<'ducc> ToValue<'ducc> for Bytes<'ducc>
[src]
Auto Trait Implementations
impl<'ducc> RefUnwindSafe for Bytes<'ducc>
impl<'ducc> !Send for Bytes<'ducc>
impl<'ducc> !Sync for Bytes<'ducc>
impl<'ducc> Unpin for Bytes<'ducc>
impl<'ducc> UnwindSafe for Bytes<'ducc>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,