pub struct BusLineConnection {
pub line_id: EntityId,
pub is_source: bool,
}Expand description
A line connection from a bus perspective.
Describes whether a bus is the source or target end of a transmission line, and which line it refers to. Used in bus-line incidence lookups.
Fields§
§line_id: EntityIdThe line’s entity ID.
is_source: boolTrue if this bus is the line’s source (direct flow direction). False if this bus is the line’s target (reverse flow direction).
Trait Implementations§
Source§impl Clone for BusLineConnection
impl Clone for BusLineConnection
Source§fn clone(&self) -> BusLineConnection
fn clone(&self) -> BusLineConnection
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 BusLineConnection
impl Debug for BusLineConnection
Source§impl PartialEq for BusLineConnection
impl PartialEq for BusLineConnection
impl Copy for BusLineConnection
impl Eq for BusLineConnection
impl StructuralPartialEq for BusLineConnection
Auto Trait Implementations§
impl Freeze for BusLineConnection
impl RefUnwindSafe for BusLineConnection
impl Send for BusLineConnection
impl Sync for BusLineConnection
impl Unpin for BusLineConnection
impl UnsafeUnpin for BusLineConnection
impl UnwindSafe for BusLineConnection
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