#[repr(C)]pub struct rs2_option_value {
pub id: rs2_option,
pub is_valid: c_int,
pub type_: rs2_option_type,
pub __bindgen_anon_1: rs2_option_value__bindgen_ty_1,
}Expand description
\brief The value of an option, in a known option type.
Fields§
§id: rs2_option§is_valid: c_int< 0 if no value available; 1 otherwise
type_: rs2_option_type§__bindgen_anon_1: rs2_option_value__bindgen_ty_1Trait Implementations§
Source§impl Clone for rs2_option_value
impl Clone for rs2_option_value
Source§fn clone(&self) -> rs2_option_value
fn clone(&self) -> rs2_option_value
Returns a duplicate 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 moreimpl Copy for rs2_option_value
Auto Trait Implementations§
impl Freeze for rs2_option_value
impl RefUnwindSafe for rs2_option_value
impl !Send for rs2_option_value
impl !Sync for rs2_option_value
impl Unpin for rs2_option_value
impl UnwindSafe for rs2_option_value
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