[][src]Struct crystal_packing::state::packed::PackedState

pub struct PackedState<S> where
    S: Shape + Intersect
{ pub wallpaper: Wallpaper, pub shape: S, pub cell: Cell2, // some fields omitted }

Fields

wallpaper: Wallpapershape: Scell: Cell2

Implementations

impl<S> PackedState<S> where
    S: Shape + Intersect
[src]

pub fn cartesian_positions<'a>(
    &'a self
) -> impl Iterator<Item = Transform2> + 'a
[src]

pub fn relative_positions<'a>(&'a self) -> impl Iterator<Item = Transform2> + 'a[src]

pub fn initialise(
    shape: S,
    wallpaper: Wallpaper,
    isopointal: &[WyckoffSite]
) -> PackedState<S>
[src]

pub fn from_group(shape: S, group: &WallpaperGroup<'_>) -> Result<Self, Error>[src]

Trait Implementations

impl<S: Clone> Clone for PackedState<S> where
    S: Shape + Intersect
[src]

impl<S: Debug> Debug for PackedState<S> where
    S: Shape + Intersect
[src]

impl<'de, S> Deserialize<'de> for PackedState<S> where
    S: Shape + Intersect,
    S: Deserialize<'de>, 
[src]

impl<S> Eq for PackedState<S> where
    S: Shape + Intersect
[src]

impl<S> Ord for PackedState<S> where
    S: Shape + Intersect
[src]

impl<S> PartialEq<PackedState<S>> for PackedState<S> where
    S: Shape + Intersect
[src]

impl<S> PartialOrd<PackedState<S>> for PackedState<S> where
    S: Shape + Intersect
[src]

impl<S> Serialize for PackedState<S> where
    S: Shape + Intersect,
    S: Serialize
[src]

impl<S> State for PackedState<S> where
    S: Shape + Intersect
[src]

impl<S> ToSVG for PackedState<S> where
    S: Shape + Intersect
[src]

type Value = Document

Auto Trait Implementations

impl<S> !RefUnwindSafe for PackedState<S>

impl<S> Send for PackedState<S>

impl<S> Sync for PackedState<S>

impl<S> Unpin for PackedState<S> where
    S: Unpin

impl<S> UnwindSafe for PackedState<S> where
    S: 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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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>,