pub struct ArcPointCommand {
pub point_index: ArcPointIndex,
}Expand description
圆弧模式坐标序号更新指令 (0x158)
用于在圆弧模式(MOVE C)下更新坐标序号。 只有 Byte 0 有效,其他字节填充 0x0。
Fields§
§point_index: ArcPointIndexImplementations§
Source§impl ArcPointCommand
impl ArcPointCommand
Sourcepub fn start() -> ArcPointCommand
pub fn start() -> ArcPointCommand
创建起点指令
Sourcepub fn middle() -> ArcPointCommand
pub fn middle() -> ArcPointCommand
创建中间点指令
Sourcepub fn end() -> ArcPointCommand
pub fn end() -> ArcPointCommand
创建终点指令
Sourcepub fn new(point_index: ArcPointIndex) -> ArcPointCommand
pub fn new(point_index: ArcPointIndex) -> ArcPointCommand
从枚举值创建
Sourcepub fn to_frame(self) -> PiperFrame
pub fn to_frame(self) -> PiperFrame
转换为 CAN 帧
Trait Implementations§
Source§impl Clone for ArcPointCommand
impl Clone for ArcPointCommand
Source§fn clone(&self) -> ArcPointCommand
fn clone(&self) -> ArcPointCommand
Returns a duplicate of the value. Read more
1.0.0 · 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 ArcPointCommand
impl Debug for ArcPointCommand
impl Copy for ArcPointCommand
Auto Trait Implementations§
impl Freeze for ArcPointCommand
impl RefUnwindSafe for ArcPointCommand
impl Send for ArcPointCommand
impl Sync for ArcPointCommand
impl Unpin for ArcPointCommand
impl UnwindSafe for ArcPointCommand
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<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