[][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> Clone for Embedding<L>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

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

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

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self

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