pub struct AddressBound<A: Addressable> {
    pub smallest_possible_position: A,
    pub largest_possible_position: A,
}Fields§
§smallest_possible_position: A§largest_possible_position: AImplementations§
Source§impl<A: Addressable> AddressBound<A>
 
impl<A: Addressable> AddressBound<A>
pub fn contains_address(&self, address: &A) -> bool
pub fn iter(&self) -> AddressIterator<A> ⓘ
pub fn new( smallest_possible_position: A, largest_possible_position: A, ) -> AddressBound<A>
pub fn index_address(&self, address: &A) -> Option<usize>
pub fn get_address_from_index(&self, index: usize) -> Result<A, &str>
Trait Implementations§
Source§impl<A: Clone + Addressable> Clone for AddressBound<A>
 
impl<A: Clone + Addressable> Clone for AddressBound<A>
Source§fn clone(&self) -> AddressBound<A>
 
fn clone(&self) -> AddressBound<A>
Returns a copy 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<A: Debug + Addressable> Debug for AddressBound<A>
 
impl<A: Debug + Addressable> Debug for AddressBound<A>
Source§impl<A: PartialEq + Addressable> PartialEq for AddressBound<A>
 
impl<A: PartialEq + Addressable> PartialEq for AddressBound<A>
impl<A: Addressable> StructuralPartialEq for AddressBound<A>
Auto Trait Implementations§
impl<A> Freeze for AddressBound<A>where
    A: Freeze,
impl<A> RefUnwindSafe for AddressBound<A>where
    A: RefUnwindSafe,
impl<A> Send for AddressBound<A>where
    A: Send,
impl<A> Sync for AddressBound<A>where
    A: Sync,
impl<A> Unpin for AddressBound<A>where
    A: Unpin,
impl<A> UnwindSafe for AddressBound<A>where
    A: UnwindSafe,
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