pub struct RingSpec {
pub centre_m: [f32; 2],
pub radius_m: f32,
pub count: usize,
pub start_deg: f32,
pub clockwise: bool,
pub along_ring: bool,
}Fields§
§centre_m: [f32; 2]§radius_m: f32§count: usize§start_deg: f32Where the first pixel sits, in degrees clockwise from twelve o’clock.
clockwise: bool§along_ring: boolTurn each pixel along the ring, as LEDs on a bent strip are.
Trait Implementations§
impl Copy for RingSpec
impl StructuralPartialEq for RingSpec
Auto Trait Implementations§
impl Freeze for RingSpec
impl RefUnwindSafe for RingSpec
impl Send for RingSpec
impl Sync for RingSpec
impl Unpin for RingSpec
impl UnsafeUnpin for RingSpec
impl UnwindSafe for RingSpec
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,
impl<T> DebugAny for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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