Struct WeekInfo
#[repr(transparent)]
pub struct WeekInfo { /* private fields */ }
Week information for a locale.
Implementations
impl WeekInfo
fn first_day(&self) -> u8The 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) -> u8Minimal 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) -> boolfn unchecked_from_js(val: JsValue) -> Selffn 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()