#[non_exhaustive]pub struct ResolvedFeature {
pub name: &'static str,
pub kind: &'static str,
pub unit: Option<String>,
}Expand description
The node a standard feature resolved to on this camera.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: &'static strIts name in this camera’s XML, such as ExposureTimeAbs.
kind: &'static strIts node type, as Node::kind_name
spells it.
unit: Option<String>Its unit as the XML declares it. A raw integer feature often declares none: its unit is the device’s own.
Trait Implementations§
Source§impl Clone for ResolvedFeature
impl Clone for ResolvedFeature
Source§impl Debug for ResolvedFeature
impl Debug for ResolvedFeature
impl Eq for ResolvedFeature
Source§impl PartialEq for ResolvedFeature
impl PartialEq for ResolvedFeature
impl StructuralPartialEq for ResolvedFeature
Auto Trait Implementations§
impl Freeze for ResolvedFeature
impl RefUnwindSafe for ResolvedFeature
impl Send for ResolvedFeature
impl Sync for ResolvedFeature
impl Unpin for ResolvedFeature
impl UnsafeUnpin for ResolvedFeature
impl UnwindSafe for ResolvedFeature
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.