Struct WeekInfo

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

Week information for a locale.

MDN documentation

Implementations

impl WeekInfo

fn first_day(&self) -> u8

The first day of the week (1 = Monday, 7 = Sunday).

impl WeekInfo

fn weekend(&self) -> Array<Number>

Array of weekend days.

impl WeekInfo

fn minimal_days(&self) -> u8

Minimal days in the first week of the year.

Trait Implementations

impl AsRef<JsValue> for WeekInfo

fn as_ref(&self) -> &JsValue

impl AsRef<Object> for WeekInfo

fn as_ref(&self) -> &Object

impl AsRef<WeekInfo> for WeekInfo

fn as_ref(&self) -> &WeekInfo

impl Clone for WeekInfo

fn clone(&self) -> Self

impl Debug for WeekInfo

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

impl Deref for WeekInfo

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

impl ErasableGeneric for WeekInfo

type Repr = JsValue;

impl From<JsValue> for WeekInfo

fn from(obj: JsValue) -> Self

impl FromWasmAbi for WeekInfo

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

impl IntoJsGeneric for WeekInfo where WeekInfo: JsGeneric,

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

impl IntoWasmAbi for WeekInfo

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

impl JsCast for WeekInfo

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

impl LongRefFromWasmAbi for WeekInfo

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

impl OptionFromWasmAbi for WeekInfo

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

impl OptionIntoWasmAbi for WeekInfo

fn none() -> Self::Abi

impl Promising for WeekInfo

type Resolution = WeekInfo;

impl RefFromWasmAbi for WeekInfo

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

impl UpcastFrom<WeekInfo> for WeekInfo

impl WasmDescribe for WeekInfo

fn describe()

Auto Trait Implementations

impl Freeze for WeekInfo

impl RefUnwindSafe for WeekInfo

impl Send for WeekInfo

impl Sync for WeekInfo

impl Unpin for WeekInfo

impl UnsafeUnpin for WeekInfo

impl UnwindSafe for WeekInfo

Blanket Implementations

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

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

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

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

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

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

impl<T> From<T> for WeekInfo

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

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

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

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

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

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

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

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

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

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