#[non_exhaustive]pub enum RangeSource {
StartRange = 0,
EndRange = 1,
Shared = 2,
}Expand description
Source indicator for range format parts.
Indicates which part of the range (start, end, or shared) a formatted
part belongs to when using formatRangeToParts().
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl RangeSource
impl RangeSource
pub fn from_js_value(obj: &JsValue) -> Option<RangeSource>
Trait Implementations§
Source§impl Clone for RangeSource
impl Clone for RangeSource
Source§fn clone(&self) -> RangeSource
fn clone(&self) -> RangeSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RangeSource
impl Debug for RangeSource
Source§impl From<RangeSource> for JsValue
impl From<RangeSource> for JsValue
Source§fn from(val: RangeSource) -> Self
fn from(val: RangeSource) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for RangeSource
impl FromWasmAbi for RangeSource
Source§impl IntoWasmAbi for RangeSource
impl IntoWasmAbi for RangeSource
Source§impl OptionFromWasmAbi for RangeSource
impl OptionFromWasmAbi for RangeSource
Source§impl OptionIntoWasmAbi for RangeSource
impl OptionIntoWasmAbi for RangeSource
Source§impl PartialEq for RangeSource
impl PartialEq for RangeSource
impl Copy for RangeSource
impl Eq for RangeSource
impl StructuralPartialEq for RangeSource
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§
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
Mutably borrows from an owned value. Read more
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
Same as
IntoWasmAbi::AbiSource§fn 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.