Skip to main content

Inflated

Struct Inflated 

Source
pub struct Inflated<I, K> { /* private fields */ }

Implementations§

Source§

impl<I, K> Inflated<I, K>

Source

pub fn inflatee(&self) -> &I

Source

pub fn offset(&self) -> &K

Source§

impl<I: Default, K> Inflated<I, K>

Source

pub fn new(offset: K) -> Self

Trait Implementations§

Source§

impl<K: Clone, P: Clone + Inflate<K>, S: Add<P, Output = PolygonId>> Add<P> for Inflated<S, K>

Source§

type Output = PolygonId

Source§

fn add(&mut self, polygon: P) -> PolygonId

Source§

impl<IE: Clone, IC: Clone + ApplyDelta<IE>, K> ApplyDelta<Inflated<IE, PhantomData<K>>> for Inflated<IC, K>

Available on crate feature undoredo only.
Source§

fn apply_delta(&mut self, delta: Delta<Inflated<IE, PhantomData<K>>>)

Apply the changes in an delta to a container. Read more
Source§

impl<I: Clone, K: Clone> Clone for Inflated<I, K>

Source§

fn clone(&self) -> Inflated<I, K>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<I: Container, K> Container for Inflated<I, K>

Source§

type Key = <I as Container>::Key

Type of the keys in the keyed collection.
Source§

type Value = <I as Container>::Value

Type of the values in the keyed collection.
Source§

impl<I: Debug, K: Debug> Debug for Inflated<I, K>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<IE: Clone, IC: FlushDelta<IE>, K> FlushDelta<Inflated<IE, PhantomData<K>>> for Inflated<IC, K>

Available on crate feature undoredo only.
Source§

fn flush_delta(&mut self) -> Delta<Inflated<IE, PhantomData<K>>>

Flush the recorder, returning the recorded delta and replacing it with a new empty one.
Source§

impl<I: Get<K2>, K, K2> Get<K2> for Inflated<I, K>

Source§

fn get(&self, key: &K2) -> Option<&Self::Value>

Returns a reference to the value corresponding to the key.
Source§

impl<K: Clone, P: Clone + Inflate<K>, S: Sub<P>> Sub<P> for Inflated<S, K>

Source§

type Output = <S as Sub<P>>::Output

Source§

fn sub(&mut self, polygon: P) -> S::Output

Auto Trait Implementations§

§

impl<I, K> Freeze for Inflated<I, K>
where I: Freeze, K: Freeze,

§

impl<I, K> RefUnwindSafe for Inflated<I, K>

§

impl<I, K> Send for Inflated<I, K>
where I: Send, K: Send,

§

impl<I, K> Sync for Inflated<I, K>
where I: Sync, K: Sync,

§

impl<I, K> Unpin for Inflated<I, K>
where I: Unpin, K: Unpin,

§

impl<I, K> UnsafeUnpin for Inflated<I, K>
where I: UnsafeUnpin, K: UnsafeUnpin,

§

impl<I, K> UnwindSafe for Inflated<I, K>
where I: UnwindSafe, K: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.