Struct ArrayBufferOptions

#[repr(transparent)]
pub struct ArrayBufferOptions { /* private fields */ }

Implementations

impl ArrayBufferOptions

fn get_max_byte_length(&self) -> usize

The maximum size, in bytes, that the array buffer can be resized to.

impl ArrayBufferOptions

fn new(max_byte_length: usize) -> ArrayBufferOptions

impl ArrayBufferOptions

fn set_max_byte_length(&self, max_byte_length: usize)

The maximum size, in bytes, that the array buffer can be resized to.

Trait Implementations

impl AsRef<ArrayBufferOptions> for ArrayBufferOptions

fn as_ref(&self) -> &ArrayBufferOptions

impl AsRef<JsValue> for ArrayBufferOptions

fn as_ref(&self) -> &JsValue

impl AsRef<Object> for ArrayBufferOptions

fn as_ref(&self) -> &Object

impl Clone for ArrayBufferOptions

fn clone(&self) -> Self

impl Debug for ArrayBufferOptions

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Deref for ArrayBufferOptions

type Target = Object;
fn deref(&self) -> &Object

impl Eq for ArrayBufferOptions

impl ErasableGeneric for ArrayBufferOptions

type Repr = JsValue;

impl From<JsValue> for ArrayBufferOptions

fn from(obj: JsValue) -> Self

impl FromWasmAbi for ArrayBufferOptions

type Abi = <JsValue as FromWasmAbi>::Abi;
unsafe fn from_abi(js: Self::Abi) -> Self

impl IntoJsGeneric for ArrayBufferOptions where ArrayBufferOptions: JsGeneric,

type JsCanon = ArrayBufferOptions;
fn to_js(self) -> ArrayBufferOptions

impl IntoWasmAbi for ArrayBufferOptions

type Abi = <JsValue as IntoWasmAbi>::Abi;
fn into_abi(self) -> Self::Abi

impl JsCast for ArrayBufferOptions

fn instanceof(val: &JsValue) -> bool
fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self

impl LongRefFromWasmAbi for ArrayBufferOptions

type Abi = <JsValue as LongRefFromWasmAbi>::Abi;
type Anchor = ArrayBufferOptions;
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

impl OptionFromWasmAbi for ArrayBufferOptions

fn is_none(abi: &Self::Abi) -> bool

impl OptionIntoWasmAbi for ArrayBufferOptions

fn none() -> Self::Abi

impl PartialEq for ArrayBufferOptions

fn eq(&self, other: &Self) -> bool

impl Promising for ArrayBufferOptions

type Resolution = ArrayBufferOptions;

impl RefFromWasmAbi for ArrayBufferOptions

type Abi = <JsValue as RefFromWasmAbi>::Abi;
type Anchor = ManuallyDrop<ArrayBufferOptions>;
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

impl StructuralPartialEq for ArrayBufferOptions

impl UpcastFrom<ArrayBufferOptions> for ArrayBufferOptions

impl WasmDescribe for ArrayBufferOptions

fn describe()

Auto Trait Implementations

impl Freeze for ArrayBufferOptions

impl RefUnwindSafe for ArrayBufferOptions

impl Send for ArrayBufferOptions

impl Sync for ArrayBufferOptions

impl Unpin for ArrayBufferOptions

impl UnsafeUnpin for ArrayBufferOptions

impl UnwindSafe for ArrayBufferOptions

Blanket Implementations

impl<P, T> Receiver for ArrayBufferOptions where P: Deref<Target = T> + ?Sized, T: ?Sized,

impl<S, T> Upcast<T> for ArrayBufferOptions where T: UpcastFrom<S> + ?Sized, S: ?Sized,

impl<T> Any for ArrayBufferOptions where T: 'static + ?Sized,

impl<T> Borrow<T> for ArrayBufferOptions where T: ?Sized,

impl<T> BorrowMut<T> for ArrayBufferOptions where T: ?Sized,

impl<T> CloneToUninit for ArrayBufferOptions where T: Clone,

impl<T> From<T> for ArrayBufferOptions

impl<T> JsGeneric for ArrayBufferOptions where T: ErasableGeneric<Repr = JsValue> + UpcastFrom<T> + Upcast<JsValue> + JsCast + 'static,

impl<T> ReturnWasmAbi for ArrayBufferOptions where T: IntoWasmAbi,

impl<T> ToOwned for ArrayBufferOptions where T: Clone,

impl<T> TryFromJsValue for ArrayBufferOptions where T: JsCast,

impl<T> VectorFromWasmAbi for ArrayBufferOptions where T: ErasableGeneric<Repr = JsValue> + WasmDescribe,

impl<T> VectorIntoWasmAbi for ArrayBufferOptions where T: ErasableGeneric<Repr = JsValue> + WasmDescribe,

impl<T> VectorRefIntoWasmAbi for ArrayBufferOptions where &'a T: for<'a> Into<JsValue>,

impl<T, U> Into<U> for ArrayBufferOptions where U: From<T>,

impl<T, U> TryFrom<U> for ArrayBufferOptions where U: Into<T>,

impl<T, U> TryInto<U> for ArrayBufferOptions where U: TryFrom<T>,