Struct gad::store::GenericGradientMap1 [−][src]
pub struct GenericGradientMap1 { /* fields omitted */ }
Gradient store used by Graph1
.
Indices of type GradientId<T>
are mapped to values of type T
.
Trait Implementations
impl Debug for GenericGradientMap1
[src]
impl Default for GenericGradientMap1
[src]
impl<T: 'static> GradientReader<GradientId<T>, T> for GenericGradientMap1
[src]
fn read(&self, id: GradientId<T>) -> Option<&T>
[src]
impl<T: 'static> GradientStore<GradientId<T>, T> for GenericGradientMap1
[src]
fn insert(&mut self, id: GradientId<T>, gradient: T)
[src]
fn get_mut(&mut self, id: GradientId<T>) -> Option<&mut 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 GenericGradientMap1
impl !Send for GenericGradientMap1
impl !Sync for GenericGradientMap1
impl Unpin for GenericGradientMap1
impl !UnwindSafe for GenericGradientMap1
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>,