Enum RangeSource

#[non_exhaustive]
#[repr(u32)]
pub enum RangeSource

Source indicator for range format parts.

Indicates which part of the range (start, end, or shared) a formatted part belongs to when using formatRangeToParts().

MDN documentation

Variants

StartRange = 0u32
EndRange = 1u32
Shared = 2u32

Implementations

impl RangeSource

fn from_js_value(obj: &JsValue) -> Option<RangeSource>

Trait Implementations

impl Clone for RangeSource

fn clone(&self) -> Self

impl Copy for RangeSource

impl Debug for RangeSource

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

impl Eq for RangeSource

impl FromWasmAbi for RangeSource

type Abi = u32;
unsafe fn from_abi(val: u32) -> Self

impl IntoWasmAbi for RangeSource

type Abi = u32;
fn into_abi(self) -> u32

impl OptionFromWasmAbi for RangeSource

fn is_none(val: &u32) -> bool

impl OptionIntoWasmAbi for RangeSource

fn none() -> Self::Abi

impl PartialEq for RangeSource

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

impl StructuralPartialEq for RangeSource

impl WasmDescribe for RangeSource

fn describe()

Auto Trait Implementations

impl Freeze for RangeSource

impl RefUnwindSafe for RangeSource

impl Send for RangeSource

impl Sync for RangeSource

impl Unpin for RangeSource

impl UnsafeUnpin for RangeSource

impl UnwindSafe for RangeSource

Blanket Implementations

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

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

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

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

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

impl<T> From<T> for RangeSource

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

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

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

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

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