pub struct PlaceLayout {
pub number: String,
pub rectangle: Box<RectangleGeometry>,
pub orientation: i32,
pub place_properties: Option<Vec<String>>,
}Expand description
PlaceLayout : A place (e.g. a seat or bicycle hook)
Fields§
§number: StringThe place number (unique per coach deck).
rectangle: Box<RectangleGeometry>§orientation: i32Orientation angle in degrees
place_properties: Option<Vec<String>>Static place properties
Implementations§
Source§impl PlaceLayout
impl PlaceLayout
Sourcepub fn new(
number: String,
rectangle: RectangleGeometry,
orientation: i32,
) -> PlaceLayout
pub fn new( number: String, rectangle: RectangleGeometry, orientation: i32, ) -> PlaceLayout
A place (e.g. a seat or bicycle hook)
Trait Implementations§
Source§impl Clone for PlaceLayout
impl Clone for PlaceLayout
Source§fn clone(&self) -> PlaceLayout
fn clone(&self) -> PlaceLayout
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 PlaceLayout
impl Debug for PlaceLayout
Source§impl Default for PlaceLayout
impl Default for PlaceLayout
Source§fn default() -> PlaceLayout
fn default() -> PlaceLayout
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PlaceLayout
impl<'de> Deserialize<'de> for PlaceLayout
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 PlaceLayout
impl PartialEq for PlaceLayout
Source§impl Serialize for PlaceLayout
impl Serialize for PlaceLayout
impl StructuralPartialEq for PlaceLayout
Auto Trait Implementations§
impl Freeze for PlaceLayout
impl RefUnwindSafe for PlaceLayout
impl Send for PlaceLayout
impl Sync for PlaceLayout
impl Unpin for PlaceLayout
impl UnwindSafe for PlaceLayout
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