[−][src]Struct eyros::Mix2
Mix coordinate container
Fields
v0: Mix<A>
Access the i-th element.
v1: Mix<B>
Access the i-th element.
Implementations
impl<A, B> Mix2<A, B>
[src]
pub fn new(v0: Mix<A>, v1: Mix<B>) -> Self
[src]
Create a new Mix container from a Mix element for each dimension.
Trait Implementations
impl<A: Clone, B: Clone> Clone for Mix2<A, B>
[src]
impl<A: Copy, B: Copy> Copy for Mix2<A, B>
[src]
impl<A, B> CountBytes for Mix2<A, B> where
A: CountBytes,
B: CountBytes,
[src]
A: CountBytes,
B: CountBytes,
fn count_bytes(&self) -> usize
[src]
fn count_from_bytes(buf: &[u8]) -> Result<usize, Error>
[src]
fn count_from_bytes_more(buf: &[u8]) -> Result<Option<usize>, Error>
[src]
impl<A: Debug, B: Debug> Debug for Mix2<A, B>
[src]
impl<A: Eq, B: Eq> Eq for Mix2<A, B>
[src]
impl<A, B> FromBytes for Mix2<A, B> where
A: FromBytes,
B: FromBytes,
[src]
A: FromBytes,
B: FromBytes,
impl<A, B> Into<(Mix<A>, Mix<B>)> for Mix2<A, B>
[src]
impl<A, B> Into<Mix2<A, B>> for (Mix<A>, Mix<B>)
[src]
impl<A: PartialEq, B: PartialEq> PartialEq<Mix2<A, B>> for Mix2<A, B>
[src]
impl<A, B> Point for Mix2<A, B> where
((A, A), (B, B)): Point,
A: ToBytes + FromBytes + CountBytes + Copy + Send + Sync + Debug + PartialOrd + Add<Output = A> + Div<Output = A> + From<u8>,
B: ToBytes + FromBytes + CountBytes + Copy + Send + Sync + Debug + PartialOrd + Add<Output = B> + Div<Output = B> + From<u8>,
[src]
((A, A), (B, B)): Point,
A: ToBytes + FromBytes + CountBytes + Copy + Send + Sync + Debug + PartialOrd + Add<Output = A> + Div<Output = A> + From<u8>,
B: ToBytes + FromBytes + CountBytes + Copy + Send + Sync + Debug + PartialOrd + Add<Output = B> + Div<Output = B> + From<u8>,
type Bounds = ((A, B), (A, B))
Bounding-box corresponding to (min,max)
as used by db.query(bbox)
.
type Range = ((A, A), (B, B))
Range corresponding to ((minX,maxX),(minY,maxY),...)
fn cmp_at(&self, other: &Self, level: usize) -> Ordering where
Self: Sized,
[src]
Self: Sized,
fn midpoint_upper(&self, other: &Self) -> Self where
Self: Sized,
[src]
Self: Sized,
fn serialize_at(&self, level: usize, dst: &mut [u8]) -> Result<usize, Error>
[src]
fn dim() -> usize
[src]
fn overlaps(&self, bbox: &Self::Bounds) -> bool
[src]
fn query_branch(
buf: &[u8],
bbox: &Self::Bounds,
bf: usize,
level: usize
) -> Result<(Vec<Cursor>, Vec<Block>), Error>
[src]
buf: &[u8],
bbox: &Self::Bounds,
bf: usize,
level: usize
) -> Result<(Vec<Cursor>, Vec<Block>), Error>
fn pivot_bytes_at(&self, level: usize) -> usize
[src]
fn count_bytes_at(buf: &[u8], level: usize) -> Result<usize, Error>
[src]
fn bounds(points: &Vec<Self>) -> Option<Self::Bounds>
[src]
fn bounds_to_range(bbox: Self::Bounds) -> Self::Range
[src]
fn format_at(_buf: &[u8], _level: usize) -> Result<String, Error>
[src]
impl<A, B> StructuralEq for Mix2<A, B>
[src]
impl<A, B> StructuralPartialEq for Mix2<A, B>
[src]
impl<A, B> ToBytes for Mix2<A, B> where
A: ToBytes + CountBytes,
B: ToBytes + CountBytes,
[src]
A: ToBytes + CountBytes,
B: ToBytes + CountBytes,
Auto Trait Implementations
impl<A, B> RefUnwindSafe for Mix2<A, B> where
A: RefUnwindSafe,
B: RefUnwindSafe,
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Mix2<A, B> where
A: Send,
B: Send,
A: Send,
B: Send,
impl<A, B> Sync for Mix2<A, B> where
A: Sync,
B: Sync,
A: Sync,
B: Sync,
impl<A, B> Unpin for Mix2<A, B> where
A: Unpin,
B: Unpin,
A: Unpin,
B: Unpin,
impl<A, B> UnwindSafe for Mix2<A, B> where
A: UnwindSafe,
B: UnwindSafe,
A: UnwindSafe,
B: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Value for T where
T: Debug + Clone + Send + Sync + ToBytes + FromBytes + CountBytes,
[src]
T: Debug + Clone + Send + Sync + ToBytes + FromBytes + CountBytes,