[][src]Struct descartes::Embedding

pub struct Embedding<L: Clone> {
    pub pieces: StableVec<(LinePath, L)>,
    // some fields omitted
}

Fields

pieces: StableVec<(LinePath, L)>

Methods

impl<L: Clone> Embedding<L>[src]

pub fn new(cell_width: N) -> Self[src]

pub fn insert(&mut self, new_path: LinePath, label: L)[src]

pub fn query_pieces<S: GridShape>(
    &self,
    shape: &S
) -> Vec<(LineSegment, &L, PieceSegmentIndex)>
[src]

pub fn query_ray_along_x(
    &self,
    start_point: P2
) -> Vec<(LineSegment, &L, PieceSegmentIndex)>
[src]

pub fn map_labels<L2: Clone, M: FnMut(&LinePath, &L, &Self) -> L2>(
    &mut self,
    mapper: M
) -> Embedding<L2>
[src]

pub fn map_labels_in_place<M: FnMut(&LinePath, &L, &Self) -> L>(
    &mut self,
    mapper: M
)
[src]

pub fn retain_pieces<P: FnMut(&LinePath, &L, &Self) -> bool>(
    &mut self,
    predicate: P
)
[src]

Trait Implementations

impl<L: Clone> Clone for Embedding<L>[src]

Auto Trait Implementations

impl<L> RefUnwindSafe for Embedding<L> where
    L: RefUnwindSafe

impl<L> Send for Embedding<L> where
    L: Send

impl<L> Sync for Embedding<L> where
    L: Sync

impl<L> Unpin for Embedding<L> where
    L: Unpin

impl<L> UnwindSafe for Embedding<L> where
    L: 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> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,