pub struct TranslationStep {
pub rule: DegradeRule,
pub target: ProtocolVersion,
}Expand description
One thing lowering did, and what it cost.
Fields§
§rule: DegradeRuleThe rule that fired.
target: ProtocolVersionThe revision the value was being lowered to, which is the only context that makes the step meaningful.
Implementations§
Source§impl TranslationStep
impl TranslationStep
Sourcepub const fn new(rule: DegradeRule, target: ProtocolVersion) -> Self
pub const fn new(rule: DegradeRule, target: ProtocolVersion) -> Self
A step, with the revision it happened at.
Trait Implementations§
Source§impl Clone for TranslationStep
impl Clone for TranslationStep
impl Copy for TranslationStep
Source§impl Debug for TranslationStep
impl Debug for TranslationStep
impl Eq for TranslationStep
Source§impl PartialEq for TranslationStep
impl PartialEq for TranslationStep
impl StructuralPartialEq for TranslationStep
Auto Trait Implementations§
impl Freeze for TranslationStep
impl RefUnwindSafe for TranslationStep
impl Send for TranslationStep
impl Sync for TranslationStep
impl Unpin for TranslationStep
impl UnsafeUnpin for TranslationStep
impl UnwindSafe for TranslationStep
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