pub struct PropertyValueSet { /* private fields */ }
Expand description
Wrapper around a set of property IDs and their raw values.
Implementations§
source§impl PropertyValueSet
impl PropertyValueSet
sourcepub fn as_hashmap(&self, device: &impl Device) -> Result<HashMap<String, Info>>
pub fn as_hashmap(&self, device: &impl Device) -> Result<HashMap<String, Info>>
Returns a HashMap mapping property names to info
sourcepub fn as_props_and_values(&self) -> (&[Handle], &[RawValue])
pub fn as_props_and_values(&self) -> (&[Handle], &[RawValue])
Returns a pair representing a set of property::Handle
and their raw values
Trait Implementations§
source§impl Clone for PropertyValueSet
impl Clone for PropertyValueSet
source§fn clone(&self) -> PropertyValueSet
fn clone(&self) -> PropertyValueSet
Returns a copy 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 PropertyValueSet
impl Debug for PropertyValueSet
source§impl<'a> IntoIterator for &'a PropertyValueSet
impl<'a> IntoIterator for &'a PropertyValueSet
source§impl IntoIterator for PropertyValueSet
impl IntoIterator for PropertyValueSet
Auto Trait Implementations§
impl Freeze for PropertyValueSet
impl RefUnwindSafe for PropertyValueSet
impl Send for PropertyValueSet
impl Sync for PropertyValueSet
impl Unpin for PropertyValueSet
impl UnwindSafe for PropertyValueSet
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)