pub struct AliasStep { /* private fields */ }Expand description
One canonical alias edge inside a single root lookup.
Implementations§
Source§impl AliasStep
impl AliasStep
Sourcepub fn new(
kind: AliasKind,
owner: CanonicalHost,
target: CanonicalHost,
) -> Result<Self, ValidationError>
pub fn new( kind: AliasKind, owner: CanonicalHost, target: CanonicalHost, ) -> Result<Self, ValidationError>
Creates a non-self-referential alias step.
§Errors
Returns ValidationError::InvalidPlan for a self-alias.
Sourcepub const fn owner(&self) -> &CanonicalHost
pub const fn owner(&self) -> &CanonicalHost
Canonical alias owner.
Sourcepub const fn target(&self) -> &CanonicalHost
pub const fn target(&self) -> &CanonicalHost
Canonical alias target.
Trait Implementations§
impl Eq for AliasStep
Source§impl Ord for AliasStep
impl Ord for AliasStep
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
Source§impl PartialOrd for AliasStep
impl PartialOrd for AliasStep
impl StructuralPartialEq for AliasStep
Auto Trait Implementations§
impl Freeze for AliasStep
impl RefUnwindSafe for AliasStep
impl Send for AliasStep
impl Sync for AliasStep
impl Unpin for AliasStep
impl UnsafeUnpin for AliasStep
impl UnwindSafe for AliasStep
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