pub struct CollectionDirectionalSpeedMemberV1 { /* private fields */ }Expand description
One ordered semantic coordinate and its mode-specific authored value.
Implementations§
Source§impl CollectionDirectionalSpeedMemberV1
impl CollectionDirectionalSpeedMemberV1
Sourcepub fn new(
id: CollectionLogicalIdV1,
coordinate: [f64; 2],
speed_mps: Option<f64>,
expected_ratio: Option<f64>,
) -> Self
pub fn new( id: CollectionLogicalIdV1, coordinate: [f64; 2], speed_mps: Option<f64>, expected_ratio: Option<f64>, ) -> Self
Construct one member declaration. Mode-specific values are validated by
CollectionDirectionalSpeedPolicyV1::new.
Sourcepub fn id(&self) -> &CollectionLogicalIdV1
pub fn id(&self) -> &CollectionLogicalIdV1
Logical member id.
Sourcepub const fn coordinate(&self) -> [f64; 2]
pub const fn coordinate(&self) -> [f64; 2]
Semantic 2-D coordinate.
Sourcepub const fn speed_mps(&self) -> Option<f64>
pub const fn speed_mps(&self) -> Option<f64>
Authored member speed, present only in authored mode.
Sourcepub const fn expected_ratio(&self) -> Option<f64>
pub const fn expected_ratio(&self) -> Option<f64>
Expected reference ratio, present only in ratios mode.
Trait Implementations§
Source§impl Clone for CollectionDirectionalSpeedMemberV1
impl Clone for CollectionDirectionalSpeedMemberV1
Source§fn clone(&self) -> CollectionDirectionalSpeedMemberV1
fn clone(&self) -> CollectionDirectionalSpeedMemberV1
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 moreimpl StructuralPartialEq for CollectionDirectionalSpeedMemberV1
Auto Trait Implementations§
impl Freeze for CollectionDirectionalSpeedMemberV1
impl RefUnwindSafe for CollectionDirectionalSpeedMemberV1
impl Send for CollectionDirectionalSpeedMemberV1
impl Sync for CollectionDirectionalSpeedMemberV1
impl Unpin for CollectionDirectionalSpeedMemberV1
impl UnsafeUnpin for CollectionDirectionalSpeedMemberV1
impl UnwindSafe for CollectionDirectionalSpeedMemberV1
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