Skip to main content

ExIterStep

Trait ExIterStep 

Source
pub trait ExIterStep:
    Clone
    + PartialOrd
    + Sized {
    type ExternalTraitSpecificationFor: Step;

    // Required methods
    spec fn spec_is_lt(self, other: Self) -> bool;
    spec fn spec_steps_between(self, end: Self) -> Option<usize>;
    spec fn spec_steps_between_int(self, end: Self) -> int;
    spec fn spec_forward_checked(self, count: usize) -> Option<Self>;
    spec fn spec_forward_checked_int(self, count: int) -> Option<Self>;
    spec fn spec_backward_checked(self, count: usize) -> Option<Self>;
    spec fn spec_backward_checked_int(self, count: int) -> Option<Self>;
}

Required Associated Types§

Required Methods§

Source

spec fn spec_is_lt(self, other: Self) -> bool

Source

spec fn spec_steps_between(self, end: Self) -> Option<usize>

Source

spec fn spec_steps_between_int(self, end: Self) -> int

Source

spec fn spec_forward_checked(self, count: usize) -> Option<Self>

Source

spec fn spec_forward_checked_int(self, count: int) -> Option<Self>

Source

spec fn spec_backward_checked(self, count: usize) -> Option<Self>

Source

spec fn spec_backward_checked_int(self, count: int) -> Option<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§