Struct gad::store::GenericGradientMapN [−][src]
pub struct GenericGradientMapN { /* fields omitted */ }
Gradient store used by GraphN
.
Indices of type GradientId<T>
are mapped to values of type Value<T>
.
Trait Implementations
impl Debug for GenericGradientMapN
[src]
impl Default for GenericGradientMapN
[src]
impl<T: 'static> GradientReader<GradientId<T>, T> for GenericGradientMapN
[src]
fn read(&self, id: GradientId<T>) -> Option<&T>
[src]
impl<T: 'static> GradientReader<GradientId<T>, Value<T>> for GenericGradientMapN
[src]
fn read(&self, id: GradientId<T>) -> Option<&Value<T>>
[src]
impl<T: 'static> GradientStore<GradientId<T>, Value<T>> for GenericGradientMapN
[src]
fn insert(&mut self, id: GradientId<T>, gradient: Value<T>)
[src]
fn get_mut(&mut self, id: GradientId<T>) -> Option<&mut Value<T>>
[src]
fn get(&self, id: Id) -> Option<&T>
[src]
fn add_gradient<A, G: ?Sized>(
&mut self,
graph: &mut G,
id: Id,
value: &T
) -> Result<()> where
G: CoreAlgebra<A, Value = T>,
Id: Copy,
T: Clone + 'static,
[src]
&mut self,
graph: &mut G,
id: Id,
value: &T
) -> Result<()> where
G: CoreAlgebra<A, Value = T>,
Id: Copy,
T: Clone + 'static,
Auto Trait Implementations
impl !RefUnwindSafe for GenericGradientMapN
impl !Send for GenericGradientMapN
impl !Sync for GenericGradientMapN
impl Unpin for GenericGradientMapN
impl !UnwindSafe for GenericGradientMapN
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,