Enum web_sys::DistanceModelType
source · [−]pub enum DistanceModelType {
Linear,
Inverse,
Exponential,
// some variants omitted
}
Expand description
The DistanceModelType
enum.
This API requires the following crate features to be activated: DistanceModelType
Variants
Linear
Inverse
Exponential
Implementations
sourceimpl DistanceModelType
impl DistanceModelType
pub fn from_js_value(obj: &JsValue) -> Option<DistanceModelType>
Trait Implementations
sourceimpl Clone for DistanceModelType
impl Clone for DistanceModelType
sourcefn clone(&self) -> DistanceModelType
fn clone(&self) -> DistanceModelType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DistanceModelType
impl Debug for DistanceModelType
sourceimpl From<DistanceModelType> for JsValue
impl From<DistanceModelType> for JsValue
sourcefn from(obj: DistanceModelType) -> JsValue
fn from(obj: DistanceModelType) -> JsValue
Converts to this type from the input type.
sourceimpl FromWasmAbi for DistanceModelType
impl FromWasmAbi for DistanceModelType
sourceimpl IntoWasmAbi for DistanceModelType
impl IntoWasmAbi for DistanceModelType
sourceimpl OptionFromWasmAbi for DistanceModelType
impl OptionFromWasmAbi for DistanceModelType
sourceimpl OptionIntoWasmAbi for DistanceModelType
impl OptionIntoWasmAbi for DistanceModelType
sourceimpl WasmDescribe for DistanceModelType
impl WasmDescribe for DistanceModelType
impl Copy for DistanceModelType
impl Eq for DistanceModelType
impl StructuralEq for DistanceModelType
impl StructuralPartialEq for DistanceModelType
Auto Trait Implementations
impl RefUnwindSafe for DistanceModelType
impl Send for DistanceModelType
impl Sync for DistanceModelType
impl Unpin for DistanceModelType
impl UnwindSafe for DistanceModelType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
sourcefn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more