pub enum CameraError {
InvalidFocalLength,
InvalidPrincipalPoint,
InvalidDepth(f64),
InvalidPixel,
}Expand description
Camera model errors.
Variants§
InvalidFocalLength
A focal length was zero, negative, or non-finite.
InvalidPrincipalPoint
The principal point was non-finite.
InvalidDepth(f64)
Projection was requested for a point outside the positive camera half-space.
InvalidPixel
Pixel coordinates were non-finite.
Trait Implementations§
Source§impl Clone for CameraError
impl Clone for CameraError
Source§fn clone(&self) -> CameraError
fn clone(&self) -> CameraError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CameraError
impl Debug for CameraError
Source§impl Display for CameraError
impl Display for CameraError
Source§impl Error for CameraError
impl Error for CameraError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<CameraError> for RgbdError
impl From<CameraError> for RgbdError
Source§fn from(source: CameraError) -> Self
fn from(source: CameraError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CameraError
impl PartialEq for CameraError
Source§fn eq(&self, other: &CameraError) -> bool
fn eq(&self, other: &CameraError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CameraError
Auto Trait Implementations§
impl Freeze for CameraError
impl RefUnwindSafe for CameraError
impl Send for CameraError
impl Sync for CameraError
impl Unpin for CameraError
impl UnsafeUnpin for CameraError
impl UnwindSafe for CameraError
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