pub struct HidReportItem { /* private fields */ }
Expand description
The HidReportItem
dictionary.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Implementations§
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_has_null(&self) -> Option<bool>
pub fn get_has_null(&self) -> Option<bool>
Get the hasNull
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_has_null(&self, val: bool)
pub fn set_has_null(&self, val: bool)
Change the hasNull
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_has_preferred_state(&self) -> Option<bool>
pub fn get_has_preferred_state(&self) -> Option<bool>
Get the hasPreferredState
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_has_preferred_state(&self, val: bool)
pub fn set_has_preferred_state(&self, val: bool)
Change the hasPreferredState
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_is_absolute(&self) -> Option<bool>
pub fn get_is_absolute(&self) -> Option<bool>
Get the isAbsolute
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_is_absolute(&self, val: bool)
pub fn set_is_absolute(&self, val: bool)
Change the isAbsolute
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_is_array(&self) -> Option<bool>
pub fn get_is_array(&self) -> Option<bool>
Get the isArray
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_is_array(&self, val: bool)
pub fn set_is_array(&self, val: bool)
Change the isArray
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_is_buffered_bytes(&self) -> Option<bool>
pub fn get_is_buffered_bytes(&self) -> Option<bool>
Get the isBufferedBytes
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_is_buffered_bytes(&self, val: bool)
pub fn set_is_buffered_bytes(&self, val: bool)
Change the isBufferedBytes
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_is_constant(&self) -> Option<bool>
pub fn get_is_constant(&self) -> Option<bool>
Get the isConstant
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_is_constant(&self, val: bool)
pub fn set_is_constant(&self, val: bool)
Change the isConstant
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_is_linear(&self) -> Option<bool>
pub fn get_is_linear(&self) -> Option<bool>
Get the isLinear
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_is_linear(&self, val: bool)
pub fn set_is_linear(&self, val: bool)
Change the isLinear
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_is_range(&self) -> Option<bool>
pub fn get_is_range(&self) -> Option<bool>
Get the isRange
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_is_range(&self, val: bool)
pub fn set_is_range(&self, val: bool)
Change the isRange
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_is_volatile(&self) -> Option<bool>
pub fn get_is_volatile(&self) -> Option<bool>
Get the isVolatile
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_is_volatile(&self, val: bool)
pub fn set_is_volatile(&self, val: bool)
Change the isVolatile
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_logical_maximum(&self) -> Option<i32>
pub fn get_logical_maximum(&self) -> Option<i32>
Get the logicalMaximum
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_logical_maximum(&self, val: i32)
pub fn set_logical_maximum(&self, val: i32)
Change the logicalMaximum
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_logical_minimum(&self) -> Option<i32>
pub fn get_logical_minimum(&self) -> Option<i32>
Get the logicalMinimum
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_logical_minimum(&self, val: i32)
pub fn set_logical_minimum(&self, val: i32)
Change the logicalMinimum
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_physical_maximum(&self) -> Option<i32>
pub fn get_physical_maximum(&self) -> Option<i32>
Get the physicalMaximum
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_physical_maximum(&self, val: i32)
pub fn set_physical_maximum(&self, val: i32)
Change the physicalMaximum
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_physical_minimum(&self) -> Option<i32>
pub fn get_physical_minimum(&self) -> Option<i32>
Get the physicalMinimum
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_physical_minimum(&self, val: i32)
pub fn set_physical_minimum(&self, val: i32)
Change the physicalMinimum
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_report_count(&self) -> Option<u16>
pub fn get_report_count(&self) -> Option<u16>
Get the reportCount
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_report_count(&self, val: u16)
pub fn set_report_count(&self, val: u16)
Change the reportCount
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_report_size(&self) -> Option<u16>
pub fn get_report_size(&self) -> Option<u16>
Get the reportSize
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_report_size(&self, val: u16)
pub fn set_report_size(&self, val: u16)
Change the reportSize
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_strings(&self) -> Option<Array>
pub fn get_strings(&self) -> Option<Array>
Get the strings
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_strings(&self, val: &JsValue)
pub fn set_strings(&self, val: &JsValue)
Change the strings
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_unit_exponent(&self) -> Option<i8>
pub fn get_unit_exponent(&self) -> Option<i8>
Get the unitExponent
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_unit_exponent(&self, val: i8)
pub fn set_unit_exponent(&self, val: i8)
Change the unitExponent
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_unit_factor_current_exponent(&self) -> Option<i8>
pub fn get_unit_factor_current_exponent(&self) -> Option<i8>
Get the unitFactorCurrentExponent
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_unit_factor_current_exponent(&self, val: i8)
pub fn set_unit_factor_current_exponent(&self, val: i8)
Change the unitFactorCurrentExponent
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_unit_factor_length_exponent(&self) -> Option<i8>
pub fn get_unit_factor_length_exponent(&self) -> Option<i8>
Get the unitFactorLengthExponent
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_unit_factor_length_exponent(&self, val: i8)
pub fn set_unit_factor_length_exponent(&self, val: i8)
Change the unitFactorLengthExponent
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_unit_factor_luminous_intensity_exponent(&self) -> Option<i8>
pub fn get_unit_factor_luminous_intensity_exponent(&self) -> Option<i8>
Get the unitFactorLuminousIntensityExponent
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_unit_factor_luminous_intensity_exponent(&self, val: i8)
pub fn set_unit_factor_luminous_intensity_exponent(&self, val: i8)
Change the unitFactorLuminousIntensityExponent
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_unit_factor_mass_exponent(&self) -> Option<i8>
pub fn get_unit_factor_mass_exponent(&self) -> Option<i8>
Get the unitFactorMassExponent
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_unit_factor_mass_exponent(&self, val: i8)
pub fn set_unit_factor_mass_exponent(&self, val: i8)
Change the unitFactorMassExponent
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_unit_factor_temperature_exponent(&self) -> Option<i8>
pub fn get_unit_factor_temperature_exponent(&self) -> Option<i8>
Get the unitFactorTemperatureExponent
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_unit_factor_temperature_exponent(&self, val: i8)
pub fn set_unit_factor_temperature_exponent(&self, val: i8)
Change the unitFactorTemperatureExponent
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_unit_factor_time_exponent(&self) -> Option<i8>
pub fn get_unit_factor_time_exponent(&self) -> Option<i8>
Get the unitFactorTimeExponent
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_unit_factor_time_exponent(&self, val: i8)
pub fn set_unit_factor_time_exponent(&self, val: i8)
Change the unitFactorTimeExponent
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_unit_system(&self) -> Option<HidUnitSystem>
pub fn get_unit_system(&self) -> Option<HidUnitSystem>
Get the unitSystem
field of this object.
This API requires the following crate features to be activated: HidReportItem
, HidUnitSystem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_unit_system(&self, val: HidUnitSystem)
pub fn set_unit_system(&self, val: HidUnitSystem)
Change the unitSystem
field of this object.
This API requires the following crate features to be activated: HidReportItem
, HidUnitSystem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_usage_maximum(&self) -> Option<u32>
pub fn get_usage_maximum(&self) -> Option<u32>
Get the usageMaximum
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_usage_maximum(&self, val: u32)
pub fn set_usage_maximum(&self, val: u32)
Change the usageMaximum
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_usage_minimum(&self) -> Option<u32>
pub fn get_usage_minimum(&self) -> Option<u32>
Get the usageMinimum
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_usage_minimum(&self, val: u32)
pub fn set_usage_minimum(&self, val: u32)
Change the usageMinimum
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_usages(&self) -> Option<Array>
pub fn get_usages(&self) -> Option<Array>
Get the usages
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_usages(&self, val: &JsValue)
pub fn set_usages(&self, val: &JsValue)
Change the usages
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn get_wrap(&self) -> Option<bool>
pub fn get_wrap(&self) -> Option<bool>
Get the wrap
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn set_wrap(&self, val: bool)
pub fn set_wrap(&self, val: bool)
Change the wrap
field of this object.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Source§impl HidReportItem
impl HidReportItem
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct a new HidReportItem
.
This API requires the following crate features to be activated: HidReportItem
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
pub fn has_null(&mut self, val: bool) -> &mut Self
set_has_null()
instead.pub fn has_preferred_state(&mut self, val: bool) -> &mut Self
set_has_preferred_state()
instead.pub fn is_absolute(&mut self, val: bool) -> &mut Self
set_is_absolute()
instead.pub fn is_array(&mut self, val: bool) -> &mut Self
set_is_array()
instead.pub fn is_buffered_bytes(&mut self, val: bool) -> &mut Self
set_is_buffered_bytes()
instead.pub fn is_constant(&mut self, val: bool) -> &mut Self
set_is_constant()
instead.pub fn is_linear(&mut self, val: bool) -> &mut Self
set_is_linear()
instead.pub fn is_range(&mut self, val: bool) -> &mut Self
set_is_range()
instead.pub fn is_volatile(&mut self, val: bool) -> &mut Self
set_is_volatile()
instead.pub fn logical_maximum(&mut self, val: i32) -> &mut Self
set_logical_maximum()
instead.pub fn logical_minimum(&mut self, val: i32) -> &mut Self
set_logical_minimum()
instead.pub fn physical_maximum(&mut self, val: i32) -> &mut Self
set_physical_maximum()
instead.pub fn physical_minimum(&mut self, val: i32) -> &mut Self
set_physical_minimum()
instead.pub fn report_count(&mut self, val: u16) -> &mut Self
set_report_count()
instead.pub fn report_size(&mut self, val: u16) -> &mut Self
set_report_size()
instead.pub fn strings(&mut self, val: &JsValue) -> &mut Self
set_strings()
instead.pub fn unit_exponent(&mut self, val: i8) -> &mut Self
set_unit_exponent()
instead.pub fn unit_factor_current_exponent(&mut self, val: i8) -> &mut Self
set_unit_factor_current_exponent()
instead.pub fn unit_factor_length_exponent(&mut self, val: i8) -> &mut Self
set_unit_factor_length_exponent()
instead.pub fn unit_factor_luminous_intensity_exponent(&mut self, val: i8) -> &mut Self
set_unit_factor_luminous_intensity_exponent()
instead.pub fn unit_factor_mass_exponent(&mut self, val: i8) -> &mut Self
set_unit_factor_mass_exponent()
instead.pub fn unit_factor_temperature_exponent(&mut self, val: i8) -> &mut Self
set_unit_factor_temperature_exponent()
instead.pub fn unit_factor_time_exponent(&mut self, val: i8) -> &mut Self
set_unit_factor_time_exponent()
instead.pub fn unit_system(&mut self, val: HidUnitSystem) -> &mut Self
set_unit_system()
instead.pub fn usage_maximum(&mut self, val: u32) -> &mut Self
set_usage_maximum()
instead.pub fn usage_minimum(&mut self, val: u32) -> &mut Self
set_usage_minimum()
instead.pub fn usages(&mut self, val: &JsValue) -> &mut Self
set_usages()
instead.pub fn wrap(&mut self, val: bool) -> &mut Self
set_wrap()
instead.Methods from Deref<Target = Object>§
Sourcepub fn constructor(&self) -> Function
pub fn constructor(&self) -> Function
The constructor property returns a reference to the Object
constructor
function that created the instance object.
Sourcepub fn has_own_property(&self, property: &JsValue) -> bool
pub fn has_own_property(&self, property: &JsValue) -> bool
The hasOwnProperty()
method returns a boolean indicating whether the
object has the specified property as its own property (as opposed to
inheriting it).
Sourcepub fn is_prototype_of(&self, value: &JsValue) -> bool
pub fn is_prototype_of(&self, value: &JsValue) -> bool
The isPrototypeOf()
method checks if an object exists in another
object’s prototype chain.
Sourcepub fn property_is_enumerable(&self, property: &JsValue) -> bool
pub fn property_is_enumerable(&self, property: &JsValue) -> bool
The propertyIsEnumerable()
method returns a Boolean indicating
whether the specified property is enumerable.
Sourcepub fn to_locale_string(&self) -> JsString
pub fn to_locale_string(&self) -> JsString
The toLocaleString()
method returns a string representing the object.
This method is meant to be overridden by derived objects for
locale-specific purposes.
Sourcepub fn to_string(&self) -> JsString
pub fn to_string(&self) -> JsString
The toString()
method returns a string representing the object.
Methods from Deref<Target = JsValue>§
pub const NULL: JsValue = _
pub const UNDEFINED: JsValue = _
pub const TRUE: JsValue = _
pub const FALSE: JsValue = _
Sourcepub fn as_f64(&self) -> Option<f64>
pub fn as_f64(&self) -> Option<f64>
Returns the f64
value of this JS value if it’s an instance of a
number.
If this JS value is not an instance of a number then this returns
None
.
Sourcepub fn as_string(&self) -> Option<String>
pub fn as_string(&self) -> Option<String>
If this JS value is a string value, this function copies the JS string
value into Wasm linear memory, encoded as UTF-8, and returns it as a
Rust String
.
To avoid the copying and re-encoding, consider the
JsString::try_from()
function from js-sys
instead.
If this JS value is not an instance of a string or if it’s not valid
utf-8 then this returns None
.
§UTF-16 vs UTF-8
JavaScript strings in general are encoded as UTF-16, but Rust strings
are encoded as UTF-8. This can cause the Rust string to look a bit
different than the JS string sometimes. For more details see the
documentation about the str
type which contains a few
caveats about the encodings.
Sourcepub fn as_bool(&self) -> Option<bool>
pub fn as_bool(&self) -> Option<bool>
Returns the bool
value of this JS value if it’s an instance of a
boolean.
If this JS value is not an instance of a boolean then this returns
None
.
Sourcepub fn is_undefined(&self) -> bool
pub fn is_undefined(&self) -> bool
Tests whether this JS value is undefined
Sourcepub fn is_function(&self) -> bool
pub fn is_function(&self) -> bool
Tests whether the type of this JS value is function
.
Sourcepub fn js_in(&self, obj: &JsValue) -> bool
pub fn js_in(&self, obj: &JsValue) -> bool
Applies the binary in
JS operator on the two JsValue
s.
Sourcepub fn loose_eq(&self, other: &JsValue) -> bool
pub fn loose_eq(&self, other: &JsValue) -> bool
Compare two JsValue
s for equality, using the ==
operator in JS.
Sourcepub fn unsigned_shr(&self, rhs: &JsValue) -> u32
pub fn unsigned_shr(&self, rhs: &JsValue) -> u32
Applies the binary >>>
JS operator on the two JsValue
s.
Sourcepub fn checked_div(&self, rhs: &JsValue) -> JsValue
pub fn checked_div(&self, rhs: &JsValue) -> JsValue
Applies the binary /
JS operator on two JsValue
s, catching and returning any RangeError
thrown.
Sourcepub fn pow(&self, rhs: &JsValue) -> JsValue
pub fn pow(&self, rhs: &JsValue) -> JsValue
Applies the binary **
JS operator on the two JsValue
s.
Sourcepub fn lt(&self, other: &JsValue) -> bool
pub fn lt(&self, other: &JsValue) -> bool
Applies the binary <
JS operator on the two JsValue
s.
Sourcepub fn le(&self, other: &JsValue) -> bool
pub fn le(&self, other: &JsValue) -> bool
Applies the binary <=
JS operator on the two JsValue
s.
Sourcepub fn ge(&self, other: &JsValue) -> bool
pub fn ge(&self, other: &JsValue) -> bool
Applies the binary >=
JS operator on the two JsValue
s.
Sourcepub fn gt(&self, other: &JsValue) -> bool
pub fn gt(&self, other: &JsValue) -> bool
Applies the binary >
JS operator on the two JsValue
s.
Sourcepub fn unchecked_into_f64(&self) -> f64
pub fn unchecked_into_f64(&self) -> f64
Applies the unary +
JS operator on a JsValue
. Can throw.
Trait Implementations§
Source§impl AsRef<HidReportItem> for HidReportItem
impl AsRef<HidReportItem> for HidReportItem
Source§fn as_ref(&self) -> &HidReportItem
fn as_ref(&self) -> &HidReportItem
Source§impl AsRef<JsValue> for HidReportItem
impl AsRef<JsValue> for HidReportItem
Source§impl AsRef<Object> for HidReportItem
impl AsRef<Object> for HidReportItem
Source§impl Clone for HidReportItem
impl Clone for HidReportItem
Source§fn clone(&self) -> HidReportItem
fn clone(&self) -> HidReportItem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for HidReportItem
impl Debug for HidReportItem
Source§impl Default for HidReportItem
impl Default for HidReportItem
Source§impl Deref for HidReportItem
impl Deref for HidReportItem
Source§impl From<HidReportItem> for JsValue
impl From<HidReportItem> for JsValue
Source§fn from(obj: HidReportItem) -> JsValue
fn from(obj: HidReportItem) -> JsValue
Source§impl From<HidReportItem> for Object
impl From<HidReportItem> for Object
Source§fn from(obj: HidReportItem) -> Object
fn from(obj: HidReportItem) -> Object
Source§impl From<JsValue> for HidReportItem
impl From<JsValue> for HidReportItem
Source§fn from(obj: JsValue) -> HidReportItem
fn from(obj: JsValue) -> HidReportItem
Source§impl FromWasmAbi for HidReportItem
impl FromWasmAbi for HidReportItem
Source§impl<'a> IntoWasmAbi for &'a HidReportItem
impl<'a> IntoWasmAbi for &'a HidReportItem
Source§impl IntoWasmAbi for HidReportItem
impl IntoWasmAbi for HidReportItem
Source§impl JsCast for HidReportItem
impl JsCast for HidReportItem
Source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moreSource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
Source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
Source§fn has_type<T>(&self) -> boolwhere
T: JsCast,
fn has_type<T>(&self) -> boolwhere
T: JsCast,
T
. Read moreSource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
T
. Read moreSource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T
. Read moreSource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
Source§fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
Source§impl LongRefFromWasmAbi for HidReportItem
impl LongRefFromWasmAbi for HidReportItem
Source§type Anchor = HidReportItem
type Anchor = HidReportItem
RefFromWasmAbi::Anchor
Source§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
RefFromWasmAbi::ref_from_abi
Source§impl OptionFromWasmAbi for HidReportItem
impl OptionFromWasmAbi for HidReportItem
Source§impl<'a> OptionIntoWasmAbi for &'a HidReportItem
impl<'a> OptionIntoWasmAbi for &'a HidReportItem
Source§impl OptionIntoWasmAbi for HidReportItem
impl OptionIntoWasmAbi for HidReportItem
Source§impl PartialEq for HidReportItem
impl PartialEq for HidReportItem
Source§impl RefFromWasmAbi for HidReportItem
impl RefFromWasmAbi for HidReportItem
Source§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.Source§type Anchor = ManuallyDrop<HidReportItem>
type Anchor = ManuallyDrop<HidReportItem>
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.impl Eq for HidReportItem
impl StructuralPartialEq for HidReportItem
Auto Trait Implementations§
impl Freeze for HidReportItem
impl RefUnwindSafe for HidReportItem
impl !Send for HidReportItem
impl !Sync for HidReportItem
impl Unpin for HidReportItem
impl UnwindSafe for HidReportItem
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
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
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.