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