pub struct Calibration<C> {
pub limit_lower: bool,
pub limit_upper: bool,
/* private fields */
}
Expand description
Calibration data for some type implementing CalibrationData.
Fields§
§limit_lower: bool
Whether or not to limit based on the first calibration point. If true,
the servo can never be set below calibration.first()
. Defaults to true.
limit_upper: bool
Whether or not to limit based on the last calibration point. If true,
the servo can never be set above calibration.last()
. Defaults to true.
Implementations§
Source§impl<C> Calibration<C>
impl<C> Calibration<C>
Source§impl<C> Calibration<C>
impl<C> Calibration<C>
pub const fn builder(calibration: C) -> CalibrationBuilder<C>
Source§impl<C> Calibration<C>where
C: CalibrationData,
for<'a> <C as CalibrationData>::Iterator<'a>: Iterator<Item = (Point, Point)>,
impl<C> Calibration<C>where
C: CalibrationData,
for<'a> <C as CalibrationData>::Iterator<'a>: Iterator<Item = (Point, Point)>,
Trait Implementations§
Source§impl<C> Clone for Calibration<C>where
C: Clone,
impl<C> Clone for Calibration<C>where
C: Clone,
impl<C> Copy for Calibration<C>where
C: Copy,
Auto Trait Implementations§
impl<C> Freeze for Calibration<C>where
C: Freeze,
impl<C> RefUnwindSafe for Calibration<C>where
C: RefUnwindSafe,
impl<C> Send for Calibration<C>where
C: Send,
impl<C> Sync for Calibration<C>where
C: Sync,
impl<C> Unpin for Calibration<C>where
C: Unpin,
impl<C> UnwindSafe for Calibration<C>where
C: UnwindSafe,
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§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more