pub struct Motion(/* private fields */);Expand description
A numpad notation motion
Implementations§
Source§impl Motion
impl Motion
Sourcepub fn new<S>(m: S) -> Result<Self, CreationError>where
S: ToString,
pub fn new<S>(m: S) -> Result<Self, CreationError>where
S: ToString,
Create a Motion from something that can be represented
as a string
Will return a CreationError if the input contains
any characters other than ASCII digits or square brackets
pub fn len(&self) -> usize
pub fn is_neutral(&self) -> bool
Trait Implementations§
impl Eq for Motion
Auto Trait Implementations§
impl Freeze for Motion
impl RefUnwindSafe for Motion
impl Send for Motion
impl Sync for Motion
impl Unpin for Motion
impl UnwindSafe for Motion
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