pub enum DataHint {
StaticDraw = 35_044,
DynamicDraw = 35_048,
StreamDraw = 35_040,
StaticRead = 35_045,
DynamicRead = 35_049,
StreamRead = 35_041,
StaticCopy = 35_046,
DynamicCopy = 35_050,
StreamCopy = 35_042,
}
Variants§
StaticDraw = 35_044
Passed to bufferData as a hint about whether the contents of the buffer are likely to be used often and not change often.
DynamicDraw = 35_048
Passed to bufferData as a hint about whether the contents of the buffer are likely to be used often and change often.
StreamDraw = 35_040
Passed to bufferData as a hint about whether the contents of the buffer are likely to not be used often.
StaticRead = 35_045
Contents of the buffer are likely to be used often and not change often. Contents are read from the buffer, but not written.
DynamicRead = 35_049
Contents of the buffer are likely to be used often and change often. Contents are read from the buffer, but not written.
StreamRead = 35_041
Contents of the buffer are likely to not be used often. Contents are read from the buffer, but not written.
StaticCopy = 35_046
Contents of the buffer are likely to be used often and not change often. Contents are neither written or read by the user.
DynamicCopy = 35_050
Contents of the buffer are likely to be used often and change often. Contents are neither written or read by the user.
StreamCopy = 35_042
Contents of the buffer are likely to be used often and not change often. Contents are neither written or read by the user.
Trait Implementations§
Source§impl FromWasmAbi for DataHint
impl FromWasmAbi for DataHint
Source§impl IntoWasmAbi for DataHint
impl IntoWasmAbi for DataHint
Source§impl OptionFromWasmAbi for DataHint
impl OptionFromWasmAbi for DataHint
Source§impl OptionIntoWasmAbi for DataHint
impl OptionIntoWasmAbi for DataHint
Source§impl TryFromJsValue for DataHint
impl TryFromJsValue for DataHint
Source§impl VectorFromWasmAbi for DataHint
impl VectorFromWasmAbi for DataHint
Source§impl VectorIntoWasmAbi for DataHint
impl VectorIntoWasmAbi for DataHint
impl Copy for DataHint
Auto Trait Implementations§
impl Freeze for DataHint
impl RefUnwindSafe for DataHint
impl Send for DataHint
impl Sync for DataHint
impl Unpin for DataHint
impl UnwindSafe for DataHint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.