pub struct LayoutCoordinates {
pub x: i32,
pub y: i32,
pub z_order: i32,
}Fields§
§x: i32horizontal coordinate of the center of the place
y: i32vertical coordinate of the center of the place
z_order: i32Graphical layer where this item has to be placed. Code list according to UIC90918-1 - value 0: lowest layer usually used for walls - value 1: middle layer usually used by places - value 2: top layer usually used by icons
Implementations§
Trait Implementations§
Source§impl Clone for LayoutCoordinates
impl Clone for LayoutCoordinates
Source§fn clone(&self) -> LayoutCoordinates
fn clone(&self) -> LayoutCoordinates
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 LayoutCoordinates
impl Debug for LayoutCoordinates
Source§impl Default for LayoutCoordinates
impl Default for LayoutCoordinates
Source§fn default() -> LayoutCoordinates
fn default() -> LayoutCoordinates
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LayoutCoordinates
impl<'de> Deserialize<'de> for LayoutCoordinates
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LayoutCoordinates
impl PartialEq for LayoutCoordinates
Source§impl Serialize for LayoutCoordinates
impl Serialize for LayoutCoordinates
impl StructuralPartialEq for LayoutCoordinates
Auto Trait Implementations§
impl Freeze for LayoutCoordinates
impl RefUnwindSafe for LayoutCoordinates
impl Send for LayoutCoordinates
impl Sync for LayoutCoordinates
impl Unpin for LayoutCoordinates
impl UnwindSafe for LayoutCoordinates
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