[−][src]Struct eyros::Mix4
Mix coordinate container
Fields
v0: Mix<A>
Access the i-th element.
v1: Mix<B>
Access the i-th element.
v2: Mix<C>
Access the i-th element.
v3: Mix<D>
Access the i-th element.
Implementations
impl<A, B, C, D> Mix4<A, B, C, D>
[src]
pub fn new(v0: Mix<A>, v1: Mix<B>, v2: Mix<C>, v3: Mix<D>) -> Self
[src]
Create a new Mix container from a Mix element for each dimension.
Trait Implementations
impl<A: Clone, B: Clone, C: Clone, D: Clone> Clone for Mix4<A, B, C, D>
[src]
impl<A: Copy, B: Copy, C: Copy, D: Copy> Copy for Mix4<A, B, C, D>
[src]
impl<A, B, C, D> CountBytes for Mix4<A, B, C, D> where
A: CountBytes,
B: CountBytes,
C: CountBytes,
D: CountBytes,
[src]
A: CountBytes,
B: CountBytes,
C: CountBytes,
D: 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, C: Debug, D: Debug> Debug for Mix4<A, B, C, D>
[src]
impl<A: Eq, B: Eq, C: Eq, D: Eq> Eq for Mix4<A, B, C, D>
[src]
impl<A, B, C, D> FromBytes for Mix4<A, B, C, D> where
A: FromBytes,
B: FromBytes,
C: FromBytes,
D: FromBytes,
[src]
A: FromBytes,
B: FromBytes,
C: FromBytes,
D: FromBytes,
impl<A, B, C, D> Into<(Mix<A>, Mix<B>, Mix<C>, Mix<D>)> for Mix4<A, B, C, D>
[src]
impl<A, B, C, D> Into<Mix4<A, B, C, D>> for (Mix<A>, Mix<B>, Mix<C>, Mix<D>)
[src]
impl<A: PartialEq, B: PartialEq, C: PartialEq, D: PartialEq> PartialEq<Mix4<A, B, C, D>> for Mix4<A, B, C, D>
[src]
fn eq(&self, other: &Mix4<A, B, C, D>) -> bool
[src]
fn ne(&self, other: &Mix4<A, B, C, D>) -> bool
[src]
impl<A, B, C, D> Point for Mix4<A, B, C, D> where
((A, A), (B, B), (C, C), (D, D)): 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>,
C: ToBytes + FromBytes + CountBytes + Copy + Send + Sync + Debug + PartialOrd + Add<Output = C> + Div<Output = C> + From<u8>,
D: ToBytes + FromBytes + CountBytes + Copy + Send + Sync + Debug + PartialOrd + Add<Output = D> + Div<Output = D> + From<u8>,
[src]
((A, A), (B, B), (C, C), (D, D)): 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>,
C: ToBytes + FromBytes + CountBytes + Copy + Send + Sync + Debug + PartialOrd + Add<Output = C> + Div<Output = C> + From<u8>,
D: ToBytes + FromBytes + CountBytes + Copy + Send + Sync + Debug + PartialOrd + Add<Output = D> + Div<Output = D> + From<u8>,
type Bounds = ((A, B, C, D), (A, B, C, D))
Bounding-box corresponding to (min,max)
as used by db.query(bbox)
.
type Range = ((A, A), (B, B), (C, C), (D, D))
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, C, D> StructuralEq for Mix4<A, B, C, D>
[src]
impl<A, B, C, D> StructuralPartialEq for Mix4<A, B, C, D>
[src]
impl<A, B, C, D> ToBytes for Mix4<A, B, C, D> where
A: ToBytes + CountBytes,
B: ToBytes + CountBytes,
C: ToBytes + CountBytes,
D: ToBytes + CountBytes,
[src]
A: ToBytes + CountBytes,
B: ToBytes + CountBytes,
C: ToBytes + CountBytes,
D: ToBytes + CountBytes,
Auto Trait Implementations
impl<A, B, C, D> RefUnwindSafe for Mix4<A, B, C, D> where
A: RefUnwindSafe,
B: RefUnwindSafe,
C: RefUnwindSafe,
D: RefUnwindSafe,
A: RefUnwindSafe,
B: RefUnwindSafe,
C: RefUnwindSafe,
D: RefUnwindSafe,
impl<A, B, C, D> Send for Mix4<A, B, C, D> where
A: Send,
B: Send,
C: Send,
D: Send,
A: Send,
B: Send,
C: Send,
D: Send,
impl<A, B, C, D> Sync for Mix4<A, B, C, D> where
A: Sync,
B: Sync,
C: Sync,
D: Sync,
A: Sync,
B: Sync,
C: Sync,
D: Sync,
impl<A, B, C, D> Unpin for Mix4<A, B, C, D> where
A: Unpin,
B: Unpin,
C: Unpin,
D: Unpin,
A: Unpin,
B: Unpin,
C: Unpin,
D: Unpin,
impl<A, B, C, D> UnwindSafe for Mix4<A, B, C, D> where
A: UnwindSafe,
B: UnwindSafe,
C: UnwindSafe,
D: UnwindSafe,
A: UnwindSafe,
B: UnwindSafe,
C: UnwindSafe,
D: 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,