pub struct Size {
pub width: u32,
pub height: u32,
}
Expand description
Represents libcamera::Size
Fields§
§width: u32
§height: u32
Trait Implementations§
source§impl From<Size> for ControlValue
impl From<Size> for ControlValue
source§impl From<Size> for libcamera_size_t
impl From<Size> for libcamera_size_t
source§impl From<libcamera_size> for Size
impl From<libcamera_size> for Size
source§fn from(s: libcamera_size_t) -> Self
fn from(s: libcamera_size_t) -> Self
Converts to this type from the input type.
source§impl TryFrom<ControlValue> for Size
impl TryFrom<ControlValue> for Size
source§type Error = ControlValueError
type Error = ControlValueError
The type returned in the event of a conversion error.
impl Copy for Size
Auto Trait Implementations§
impl Freeze for Size
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnwindSafe for Size
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
)