[][src]Struct toio::proto::IdPos

pub struct IdPos {
    pub cube_x: u16,
    pub cube_y: u16,
    pub cube_angle: u16,
    pub sensor_x: u16,
    pub sensor_y: u16,
    pub sensor_angle: u16,
}

Position id

Fields

cube_x: u16

The x coordinate of the cube.

cube_y: u16

The y coordinate of the cube.

cube_angle: u16

The angle of the cube.

sensor_x: u16

The x coordinate of the cube.

sensor_y: u16

The y coordinate of the cube.

sensor_angle: u16

The angle of the cube.

Implementations

impl IdPos[src]

pub fn new(
    cube_x: u16,
    cube_y: u16,
    cube_angle: u16,
    sensor_x: u16,
    sensor_y: u16,
    sensor_angle: u16
) -> Self
[src]

Constructs a new IdPos.

Trait Implementations

impl Clone for IdPos[src]

impl Debug for IdPos[src]

impl<'de> Deserialize<'de> for IdPos[src]

impl Eq for IdPos[src]

impl From<IdPos> for Position[src]

impl Hash for IdPos[src]

impl PartialEq<IdPos> for IdPos[src]

impl Serialize for IdPos[src]

impl StructuralEq for IdPos[src]

impl StructuralPartialEq for IdPos[src]

Auto Trait Implementations

impl RefUnwindSafe for IdPos

impl Send for IdPos

impl Sync for IdPos

impl Unpin for IdPos

impl UnwindSafe for IdPos

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.