pub struct GraphicElement {
pub rectangle: Box<RectangleGeometry>,
pub orientation: i32,
pub code: String,
}Expand description
GraphicElement : An element in the coach deck layout (e.g. table, stair, toilet etc.).
Fields§
§rectangle: Box<RectangleGeometry>§orientation: i32Orientation angle in degrees
code: StringSee https://osdm.io/spec/catalog-of-code-lists/#GraphicsItems
Implementations§
Source§impl GraphicElement
impl GraphicElement
Sourcepub fn new(
rectangle: RectangleGeometry,
orientation: i32,
code: String,
) -> GraphicElement
pub fn new( rectangle: RectangleGeometry, orientation: i32, code: String, ) -> GraphicElement
An element in the coach deck layout (e.g. table, stair, toilet etc.).
Trait Implementations§
Source§impl Clone for GraphicElement
impl Clone for GraphicElement
Source§fn clone(&self) -> GraphicElement
fn clone(&self) -> GraphicElement
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 GraphicElement
impl Debug for GraphicElement
Source§impl Default for GraphicElement
impl Default for GraphicElement
Source§fn default() -> GraphicElement
fn default() -> GraphicElement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GraphicElement
impl<'de> Deserialize<'de> for GraphicElement
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 GraphicElement
impl PartialEq for GraphicElement
Source§impl Serialize for GraphicElement
impl Serialize for GraphicElement
impl StructuralPartialEq for GraphicElement
Auto Trait Implementations§
impl Freeze for GraphicElement
impl RefUnwindSafe for GraphicElement
impl Send for GraphicElement
impl Sync for GraphicElement
impl Unpin for GraphicElement
impl UnwindSafe for GraphicElement
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