pub struct Line { /* private fields */ }Expand description
Component for a line entity — the physical path an elevator car travels.
In a building this is a hoistway/shaft. For a space elevator it is a tether or cable. The term “line” is domain-neutral.
A line belongs to exactly one GroupId at a time but can be
reassigned at runtime (swing-car pattern). Multiple cars may share
a line (multi-car shafts); collision avoidance is left to game hooks.
Intrinsic properties only — relationship data (which elevators, which
stops) lives in LineInfo on the
ElevatorGroup.
Implementations§
Source§impl Line
impl Line
Sourcepub const fn orientation(&self) -> Orientation
pub const fn orientation(&self) -> Orientation
Physical orientation.
Sourcepub const fn position(&self) -> Option<&FloorPosition>
pub const fn position(&self) -> Option<&FloorPosition>
Optional floor-plan position.
Sourcepub const fn min_position(&self) -> f64
pub const fn min_position(&self) -> f64
Lowest reachable position along the line axis.
Sourcepub const fn max_position(&self) -> f64
pub const fn max_position(&self) -> f64
Highest reachable position along the line axis.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Line
impl<'de> Deserialize<'de> for Line
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 WorldQuery for &Line
impl WorldQuery for &Line
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnsafeUnpin for Line
impl UnwindSafe for Line
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