pub struct BusOrigin {
pub file: String,
pub line: usize,
pub message: String,
pub to: String,
pub to_file: String,
}Expand description
One bus-hop edge’s own identity: the route a possible-route row
discloses, and what a later hop’s downstream row inherits when it is
reached only through this one.
Total order (file, line, message, to)
byte order (the same route-tuple ordering a bus-hop edge’s own identity
uses elsewhere in this engine), to_file a final harmless tiebreak – so
“the lowest by (publisher file, line, message, handler)” is a single
comparison, never a policy choice made ad hoc at each call site.
Fields§
§file: StringThe publish site’s own file.
line: usizeThe publish site’s own line.
message: StringThe resolved message identity.
to: StringThe handler def id.
to_file: StringThe handler’s own file.
Trait Implementations§
impl Eq for BusOrigin
Source§impl Ord for BusOrigin
impl Ord for BusOrigin
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for BusOrigin
impl PartialOrd for BusOrigin
impl StructuralPartialEq for BusOrigin
Auto Trait Implementations§
impl Freeze for BusOrigin
impl RefUnwindSafe for BusOrigin
impl Send for BusOrigin
impl Sync for BusOrigin
impl Unpin for BusOrigin
impl UnsafeUnpin for BusOrigin
impl UnwindSafe for BusOrigin
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more