pub struct LineParams {
pub name: String,
pub group: GroupId,
pub orientation: Orientation,
pub min_position: f64,
pub max_position: f64,
pub position: Option<FloorPosition>,
pub max_cars: Option<usize>,
}Expand description
Parameters for creating a new line at runtime.
Fields§
§name: StringHuman-readable name.
group: GroupIdDispatch group to add this line to.
orientation: OrientationPhysical orientation.
min_position: f64Lowest reachable position on the line axis.
max_position: f64Highest reachable position on the line axis.
position: Option<FloorPosition>Optional floor-plan position.
max_cars: Option<usize>Maximum cars on this line (None = unlimited).
Implementations§
Trait Implementations§
Source§impl Clone for LineParams
impl Clone for LineParams
Source§fn clone(&self) -> LineParams
fn clone(&self) -> LineParams
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 moreAuto Trait Implementations§
impl Freeze for LineParams
impl RefUnwindSafe for LineParams
impl Send for LineParams
impl Sync for LineParams
impl Unpin for LineParams
impl UnsafeUnpin for LineParams
impl UnwindSafe for LineParams
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