Struct rin::util::LazyUpdate [−][src]
pub struct LazyUpdate<T> { /* fields omitted */ }
A Lazy value that defers updates until the result is needed for the first time
Implementations
impl<T> LazyUpdate<T>
[src]
impl<T> LazyUpdate<T>
[src]pub fn new(v: T) -> LazyUpdate<T>
[src]
pub fn new_dirty(v: T) -> LazyUpdate<T>
[src]
pub fn set_changed(&self)
[src]
pub fn update<F>(&self, f: F) where
F: FnMut(&mut T),
[src]
F: FnMut(&mut T),
Trait Implementations
impl<T> BorrowMut<T> for LazyUpdate<T>
[src]
impl<T> BorrowMut<T> for LazyUpdate<T>
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Clone for LazyUpdate<T> where
T: Clone,
[src]
impl<T> Clone for LazyUpdate<T> where
T: Clone,
[src]pub fn clone(&self) -> LazyUpdate<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Debug for LazyUpdate<T> where
T: Debug,
[src]
impl<T> Debug for LazyUpdate<T> where
T: Debug,
[src]impl<T> Deref for LazyUpdate<T>
[src]
impl<T> Deref for LazyUpdate<T>
[src]impl<'a, T> Deserialize<'a> for LazyUpdate<T> where
T: Deserialize<'a>,
[src]
impl<'a, T> Deserialize<'a> for LazyUpdate<T> where
T: Deserialize<'a>,
[src]pub fn deserialize<S>(
deserializer: S
) -> Result<LazyUpdate<T>, <S as Deserializer<'a>>::Error> where
S: Deserializer<'a>,
[src]
deserializer: S
) -> Result<LazyUpdate<T>, <S as Deserializer<'a>>::Error> where
S: Deserializer<'a>,
impl<T> From<T> for LazyUpdate<T>
[src]
impl<T> From<T> for LazyUpdate<T>
[src]pub fn from(t: T) -> LazyUpdate<T>
[src]
impl<T> Serialize for LazyUpdate<T> where
T: Serialize,
[src]
impl<T> Serialize for LazyUpdate<T> where
T: Serialize,
[src]pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Auto Trait Implementations
impl<T> !RefUnwindSafe for LazyUpdate<T>
impl<T> Send for LazyUpdate<T> where
T: Send,
T: Send,
impl<T> !Sync for LazyUpdate<T>
impl<T> Unpin for LazyUpdate<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for LazyUpdate<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<C> AsUniform<CubeMap> for C where
C: Borrow<CubeMap>,
[src]
impl<C> AsUniform<CubeMap> for C where
C: Borrow<CubeMap>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<'a, C> AsUniform<CubeMapSampler<'a>> for C where
C: Borrow<CubeMapSampler<'a>>,
[src]
impl<'a, C> AsUniform<CubeMapSampler<'a>> for C where
C: Borrow<CubeMapSampler<'a>>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<T> AsUniform<Texture> for T where
T: Borrow<Texture>,
[src]
impl<T> AsUniform<Texture> for T where
T: Borrow<Texture>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<'a, T> AsUniform<TextureSampler<'a>> for T where
T: Borrow<TextureSampler<'a>>,
[src]
impl<'a, T> AsUniform<TextureSampler<'a>> for T where
T: Borrow<TextureSampler<'a>>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<T> AsUniform<dyn AsRef<[[f32; 3]; 3]> + 'static> for T where
T: AsRef<[[f32; 3]; 3]>,
[src]
impl<T> AsUniform<dyn AsRef<[[f32; 3]; 3]> + 'static> for T where
T: AsRef<[[f32; 3]; 3]>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<T> AsUniform<dyn AsRef<[[f32; 4]; 4]> + 'static> for T where
T: AsRef<[[f32; 4]; 4]>,
[src]
impl<T> AsUniform<dyn AsRef<[[f32; 4]; 4]> + 'static> for T where
T: AsRef<[[f32; 4]; 4]>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<T> AsUniform<dyn AsRef<[f32; 2]> + 'static> for T where
T: AsRef<[f32; 2]>,
[src]
impl<T> AsUniform<dyn AsRef<[f32; 2]> + 'static> for T where
T: AsRef<[f32; 2]>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<T> AsUniform<dyn AsRef<[f32; 3]> + 'static> for T where
T: AsRef<[f32; 3]>,
[src]
impl<T> AsUniform<dyn AsRef<[f32; 3]> + 'static> for T where
T: AsRef<[f32; 3]>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<T> AsUniform<dyn AsRef<[f32; 4]> + 'static> for T where
T: AsRef<[f32; 4]>,
[src]
impl<T> AsUniform<dyn AsRef<[f32; 4]> + 'static> for T where
T: AsRef<[f32; 4]>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<T> AsUniform<dyn AsRef<[f32; 9]> + 'static> for T where
T: AsRef<[f32; 9]>,
[src]
impl<T> AsUniform<dyn AsRef<[f32; 9]> + 'static> for T where
T: AsRef<[f32; 9]>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<T> AsUniform<dyn AsRef<[i32; 2]> + 'static> for T where
T: AsRef<[i32; 2]>,
[src]
impl<T> AsUniform<dyn AsRef<[i32; 2]> + 'static> for T where
T: AsRef<[i32; 2]>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<T> AsUniform<dyn AsRef<[i32; 3]> + 'static> for T where
T: AsRef<[i32; 3]>,
[src]
impl<T> AsUniform<dyn AsRef<[i32; 3]> + 'static> for T where
T: AsRef<[i32; 3]>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<T> AsUniform<dyn AsRef<[i32; 4]> + 'static> for T where
T: AsRef<[i32; 4]>,
[src]
impl<T> AsUniform<dyn AsRef<[i32; 4]> + 'static> for T where
T: AsRef<[i32; 4]>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<T> AsUniform<dyn AsRef<[u32; 2]> + 'static> for T where
T: AsRef<[u32; 2]>,
[src]
impl<T> AsUniform<dyn AsRef<[u32; 2]> + 'static> for T where
T: AsRef<[u32; 2]>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<T> AsUniform<dyn AsRef<[u32; 3]> + 'static> for T where
T: AsRef<[u32; 3]>,
[src]
impl<T> AsUniform<dyn AsRef<[u32; 3]> + 'static> for T where
T: AsRef<[u32; 3]>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<T> AsUniform<dyn AsRef<[u32; 4]> + 'static> for T where
T: AsRef<[u32; 4]>,
[src]
impl<T> AsUniform<dyn AsRef<[u32; 4]> + 'static> for T where
T: AsRef<[u32; 4]>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<A> AsUniform<dyn AsRef<f32> + 'static> for A where
A: AsRef<f32>,
[src]
impl<A> AsUniform<dyn AsRef<f32> + 'static> for A where
A: AsRef<f32>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<A> AsUniform<dyn AsRef<i32> + 'static> for A where
A: AsRef<i32>,
[src]
impl<A> AsUniform<dyn AsRef<i32> + 'static> for A where
A: AsRef<i32>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<A> AsUniform<dyn AsRef<u32> + 'static> for A where
A: AsRef<u32>,
[src]
impl<A> AsUniform<dyn AsRef<u32> + 'static> for A where
A: AsRef<u32>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<U, T> AsUniform<dyn Deref<Target = [[f32; 3]; 3]> + 'static> for U where
T: AsUniform<[[f32; 3]; 3]>,
U: Deref<Target = T>,
[src]
impl<U, T> AsUniform<dyn Deref<Target = [[f32; 3]; 3]> + 'static> for U where
T: AsUniform<[[f32; 3]; 3]>,
U: Deref<Target = T>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<U, T> AsUniform<dyn Deref<Target = [[f32; 4]; 4]> + 'static> for U where
T: AsUniform<[[f32; 4]; 4]>,
U: Deref<Target = T>,
[src]
impl<U, T> AsUniform<dyn Deref<Target = [[f32; 4]; 4]> + 'static> for U where
T: AsUniform<[[f32; 4]; 4]>,
U: Deref<Target = T>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<U, T> AsUniform<dyn Deref<Target = [f32; 2]> + 'static> for U where
T: AsUniform<[f32; 2]>,
U: Deref<Target = T>,
[src]
impl<U, T> AsUniform<dyn Deref<Target = [f32; 2]> + 'static> for U where
T: AsUniform<[f32; 2]>,
U: Deref<Target = T>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<U, T> AsUniform<dyn Deref<Target = [f32; 3]> + 'static> for U where
T: AsUniform<[f32; 3]>,
U: Deref<Target = T>,
[src]
impl<U, T> AsUniform<dyn Deref<Target = [f32; 3]> + 'static> for U where
T: AsUniform<[f32; 3]>,
U: Deref<Target = T>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<U, T> AsUniform<dyn Deref<Target = [f32; 4]> + 'static> for U where
T: AsUniform<dyn AsRef<[f32; 4]> + 'static>,
U: Deref<Target = T>,
[src]
impl<U, T> AsUniform<dyn Deref<Target = [f32; 4]> + 'static> for U where
T: AsUniform<dyn AsRef<[f32; 4]> + 'static>,
U: Deref<Target = T>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<U, T> AsUniform<dyn Deref<Target = [i32; 2]> + 'static> for U where
T: AsUniform<[i32; 2]>,
U: Deref<Target = T>,
[src]
impl<U, T> AsUniform<dyn Deref<Target = [i32; 2]> + 'static> for U where
T: AsUniform<[i32; 2]>,
U: Deref<Target = T>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<U, T> AsUniform<dyn Deref<Target = [i32; 3]> + 'static> for U where
T: AsUniform<[i32; 3]>,
U: Deref<Target = T>,
[src]
impl<U, T> AsUniform<dyn Deref<Target = [i32; 3]> + 'static> for U where
T: AsUniform<[i32; 3]>,
U: Deref<Target = T>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<U, T> AsUniform<dyn Deref<Target = [i32; 4]> + 'static> for U where
T: AsUniform<dyn AsRef<[i32; 4]> + 'static>,
U: Deref<Target = T>,
[src]
impl<U, T> AsUniform<dyn Deref<Target = [i32; 4]> + 'static> for U where
T: AsUniform<dyn AsRef<[i32; 4]> + 'static>,
U: Deref<Target = T>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<U, T> AsUniform<dyn Deref<Target = [u32; 2]> + 'static> for U where
T: AsUniform<[u32; 2]>,
U: Deref<Target = T>,
[src]
impl<U, T> AsUniform<dyn Deref<Target = [u32; 2]> + 'static> for U where
T: AsUniform<[u32; 2]>,
U: Deref<Target = T>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<U, T> AsUniform<dyn Deref<Target = [u32; 3]> + 'static> for U where
T: AsUniform<[u32; 3]>,
U: Deref<Target = T>,
[src]
impl<U, T> AsUniform<dyn Deref<Target = [u32; 3]> + 'static> for U where
T: AsUniform<[u32; 3]>,
U: Deref<Target = T>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<U, T> AsUniform<dyn Deref<Target = [u32; 4]> + 'static> for U where
T: AsUniform<dyn AsRef<[u32; 4]> + 'static>,
U: Deref<Target = T>,
[src]
impl<U, T> AsUniform<dyn Deref<Target = [u32; 4]> + 'static> for U where
T: AsUniform<dyn AsRef<[u32; 4]> + 'static>,
U: Deref<Target = T>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<U, T> AsUniform<dyn Deref<Target = dyn AsRef<[[f32; 3]; 3]> + 'static> + 'static> for U where
T: AsUniform<dyn AsRef<[[f32; 3]; 3]> + 'static>,
U: Deref<Target = T>,
[src]
impl<U, T> AsUniform<dyn Deref<Target = dyn AsRef<[[f32; 3]; 3]> + 'static> + 'static> for U where
T: AsUniform<dyn AsRef<[[f32; 3]; 3]> + 'static>,
U: Deref<Target = T>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<U, T> AsUniform<dyn Deref<Target = dyn AsRef<[[f32; 4]; 4]> + 'static> + 'static> for U where
T: AsUniform<dyn AsRef<[[f32; 4]; 4]> + 'static>,
U: Deref<Target = T>,
[src]
impl<U, T> AsUniform<dyn Deref<Target = dyn AsRef<[[f32; 4]; 4]> + 'static> + 'static> for U where
T: AsUniform<dyn AsRef<[[f32; 4]; 4]> + 'static>,
U: Deref<Target = T>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<U, T> AsUniform<dyn Deref<Target = dyn AsRef<[f32; 2]> + 'static> + 'static> for U where
T: AsUniform<dyn AsRef<[f32; 2]> + 'static>,
U: Deref<Target = T>,
[src]
impl<U, T> AsUniform<dyn Deref<Target = dyn AsRef<[f32; 2]> + 'static> + 'static> for U where
T: AsUniform<dyn AsRef<[f32; 2]> + 'static>,
U: Deref<Target = T>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<U, T> AsUniform<dyn Deref<Target = dyn AsRef<[f32; 3]> + 'static> + 'static> for U where
T: AsUniform<dyn AsRef<[f32; 3]> + 'static>,
U: Deref<Target = T>,
[src]
impl<U, T> AsUniform<dyn Deref<Target = dyn AsRef<[f32; 3]> + 'static> + 'static> for U where
T: AsUniform<dyn AsRef<[f32; 3]> + 'static>,
U: Deref<Target = T>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<U, T> AsUniform<dyn Deref<Target = dyn AsRef<[i32; 2]> + 'static> + 'static> for U where
T: AsUniform<dyn AsRef<[i32; 2]> + 'static>,
U: Deref<Target = T>,
[src]
impl<U, T> AsUniform<dyn Deref<Target = dyn AsRef<[i32; 2]> + 'static> + 'static> for U where
T: AsUniform<dyn AsRef<[i32; 2]> + 'static>,
U: Deref<Target = T>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<U, T> AsUniform<dyn Deref<Target = dyn AsRef<[i32; 3]> + 'static> + 'static> for U where
T: AsUniform<dyn AsRef<[i32; 3]> + 'static>,
U: Deref<Target = T>,
[src]
impl<U, T> AsUniform<dyn Deref<Target = dyn AsRef<[i32; 3]> + 'static> + 'static> for U where
T: AsUniform<dyn AsRef<[i32; 3]> + 'static>,
U: Deref<Target = T>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<U, T> AsUniform<dyn Deref<Target = dyn AsRef<[u32; 2]> + 'static> + 'static> for U where
T: AsUniform<dyn AsRef<[u32; 2]> + 'static>,
U: Deref<Target = T>,
[src]
impl<U, T> AsUniform<dyn Deref<Target = dyn AsRef<[u32; 2]> + 'static> + 'static> for U where
T: AsUniform<dyn AsRef<[u32; 2]> + 'static>,
U: Deref<Target = T>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<U, T> AsUniform<dyn Deref<Target = dyn AsRef<[u32; 3]> + 'static> + 'static> for U where
T: AsUniform<dyn AsRef<[u32; 3]> + 'static>,
U: Deref<Target = T>,
[src]
impl<U, T> AsUniform<dyn Deref<Target = dyn AsRef<[u32; 3]> + 'static> + 'static> for U where
T: AsUniform<dyn AsRef<[u32; 3]> + 'static>,
U: Deref<Target = T>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<U, T> AsUniform<dyn Deref<Target = dyn AsRef<f32> + 'static> + 'static> for U where
T: AsUniform<dyn AsRef<f32> + 'static>,
U: Deref<Target = T>,
[src]
impl<U, T> AsUniform<dyn Deref<Target = dyn AsRef<f32> + 'static> + 'static> for U where
T: AsUniform<dyn AsRef<f32> + 'static>,
U: Deref<Target = T>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<U, T> AsUniform<dyn Deref<Target = dyn AsRef<i32> + 'static> + 'static> for U where
T: AsUniform<dyn AsRef<i32> + 'static>,
U: Deref<Target = T>,
[src]
impl<U, T> AsUniform<dyn Deref<Target = dyn AsRef<i32> + 'static> + 'static> for U where
T: AsUniform<dyn AsRef<i32> + 'static>,
U: Deref<Target = T>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<U, T> AsUniform<dyn Deref<Target = dyn AsRef<u32> + 'static> + 'static> for U where
T: AsUniform<dyn AsRef<u32> + 'static>,
U: Deref<Target = T>,
[src]
impl<U, T> AsUniform<dyn Deref<Target = dyn AsRef<u32> + 'static> + 'static> for U where
T: AsUniform<dyn AsRef<u32> + 'static>,
U: Deref<Target = T>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<U, T> AsUniform<dyn Deref<Target = i32> + 'static> for U where
T: AsUniform<i32>,
U: Deref<Target = T>,
[src]
impl<U, T> AsUniform<dyn Deref<Target = i32> + 'static> for U where
T: AsUniform<i32>,
U: Deref<Target = T>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<U, T> AsUniform<dyn Deref<Target = u32> + 'static> for U where
T: AsUniform<u32>,
U: Deref<Target = T>,
[src]
impl<U, T> AsUniform<dyn Deref<Target = u32> + 'static> for U where
T: AsUniform<u32>,
U: Deref<Target = T>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,