[][src]Struct generic_octree::loc_code::LocCode

pub struct LocCode<T>(pub T)
where
    T: Copy + Debug
;

Implementations

impl<T> LocCode<T> where
    T: Eq + From<u8> + Shr<Output = T> + Copy + Debug
[src]

pub fn get_level(&self) -> u32[src]

impl<T> LocCode<T> where
    T: Eq + From<u8> + From<u64> + Shr<Output = T> + Shl<Output = T> + BitXor<Output = T> + BitAnd<Output = T> + Copy + Debug
[src]

pub fn get_center_u32(self) -> (u32, u32, u32)[src]

Trait Implementations

impl<T, D> BitAnd<D> for LocCode<T> where
    T: BitAnd<Output = T> + From<D> + Copy + Debug
[src]

type Output = Self

The resulting type after applying the & operator.

impl<T, D> BitOr<D> for LocCode<T> where
    T: BitOr<Output = T> + From<D> + Copy + Debug
[src]

type Output = Self

The resulting type after applying the | operator.

impl<T, D> BitXor<D> for LocCode<T> where
    T: BitXor<Output = T> + From<D> + Copy + Debug
[src]

type Output = Self

The resulting type after applying the ^ operator.

impl<T: Clone> Clone for LocCode<T> where
    T: Copy + Debug
[src]

impl<T: Copy> Copy for LocCode<T> where
    T: Copy + Debug
[src]

impl<T: Debug> Debug for LocCode<T> where
    T: Copy + Debug
[src]

impl<T: Eq> Eq for LocCode<T> where
    T: Copy + Debug
[src]

impl<T> From<u16> for LocCode<T> where
    T: From<u16> + Copy + Debug
[src]

impl<T> From<u32> for LocCode<T> where
    T: From<u32> + Copy + Debug
[src]

impl<T> From<u64> for LocCode<T> where
    T: From<u64> + Copy + Debug
[src]

impl<T> From<u8> for LocCode<T> where
    T: From<u8> + Copy + Debug
[src]

impl<T: Hash> Hash for LocCode<T> where
    T: Copy + Debug
[src]

impl<T: Ord> Ord for LocCode<T> where
    T: Copy + Debug
[src]

impl<T: PartialEq> PartialEq<LocCode<T>> for LocCode<T> where
    T: Copy + Debug
[src]

impl<T: PartialOrd> PartialOrd<LocCode<T>> for LocCode<T> where
    T: Copy + Debug
[src]

impl<T, D> Shl<D> for LocCode<T> where
    T: Shl<Output = T> + From<D> + Copy + Debug
[src]

type Output = Self

The resulting type after applying the << operator.

impl<T, D> Shr<D> for LocCode<T> where
    T: Shr<Output = T> + From<D> + Copy + Debug
[src]

type Output = Self

The resulting type after applying the >> operator.

impl<T> StructuralEq for LocCode<T> where
    T: Copy + Debug
[src]

impl<T> StructuralPartialEq for LocCode<T> where
    T: Copy + Debug
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for LocCode<T> where
    T: RefUnwindSafe

impl<T> Send for LocCode<T> where
    T: Send

impl<T> Sync for LocCode<T> where
    T: Sync

impl<T> Unpin for LocCode<T> where
    T: Unpin

impl<T> UnwindSafe for LocCode<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.