Struct rin::events::Property [−][src]
#[must_use = "Dropping a Property unsubscribes it and all the chain until the origin sender"]pub struct Property<'a, T> where
T: 'a + Clone, { /* fields omitted */ }
Implementations
impl<'a, T> Property<'a, T> where
T: 'a + Clone,
[src]
impl<'a, T> Property<'a, T> where
T: 'a + Clone,
[src]pub fn from_parent<S>(parent: S, initial: T) -> Property<'a, T> where
S: Into<StreamRc<'a, T>>,
[src]
S: Into<StreamRc<'a, T>>,
pub fn new(initial: T) -> Property<'a, T>
[src]
pub fn swap_parent<S>(&mut self, parent: S) where
S: Into<StreamRc<'a, T>>,
[src]
S: Into<StreamRc<'a, T>>,
pub fn from_sender_stream<S>(
sender: SenderRc<'a, T>,
stream: S,
initial: T
) -> Property<'a, T> where
S: Into<StreamRc<'a, T>>,
[src]
sender: SenderRc<'a, T>,
stream: S,
initial: T
) -> Property<'a, T> where
S: Into<StreamRc<'a, T>>,
pub fn get(&self) -> &T
[src]
pub fn into_inner(self) -> Result<T, Property<'a, T>>
[src]
pub fn set(&mut self, t: T)
[src]
pub fn map<'b, T2, F>(self, f: F) -> Property<'b, T2> where
'a: 'b,
T: 'b,
F: 'a + FnMut(T) -> T2,
T2: Clone,
[src]
'a: 'b,
T: 'b,
F: 'a + FnMut(T) -> T2,
T2: Clone,
pub fn inspect<'b, F>(self, f: F) -> Property<'b, T> where
'a: 'b,
T: 'b,
F: 'b + Fn(&T),
[src]
'a: 'b,
T: 'b,
F: 'b + Fn(&T),
pub fn filter<'b, F>(self, f: F) -> Property<'b, T> where
'a: 'b,
T: 'b,
F: 'b + FnMut(&T) -> bool,
[src]
'a: 'b,
T: 'b,
F: 'b + FnMut(&T) -> bool,
pub fn filter_by<'b, 'c>(self, b: Property<'b, bool>) -> Property<'c, T> where
'a: 'b,
'b: 'c,
T: 'b,
[src]
'a: 'b,
'b: 'c,
T: 'b,
pub fn merge<'b, 'c>(self, b: Property<'b, T>) -> Property<'c, T> where
'a: 'b,
'b: 'c,
T: 'b,
[src]
'a: 'b,
'b: 'c,
T: 'b,
pub fn merge_stream<'b, 'c, S>(self, b: S) -> Property<'c, T> where
'a: 'b,
'b: 'c,
T: 'b,
S: StreamExt<'a, T>,
[src]
'a: 'b,
'b: 'c,
T: 'b,
S: StreamExt<'a, T>,
pub fn zip<T2>(self, other: Property<'a, T2>) -> Property<'a, (T, T2)> where
T2: 'a + Clone,
[src]
T2: 'a + Clone,
pub fn stream(self) -> StreamRc<'a, T>
[src]
pub fn is(&self, other: &Property<'b, T>) -> bool
[src]
pub fn try_iter<'b>(self) -> TryIter<'b, T>ⓘ where
'a: 'b,
[src]
'a: 'b,
pub fn to_parameter<'b>(self) -> Parameter<'b, T> where
'a: 'b,
[src]
'a: 'b,
pub fn into_property_last_value(self) -> PropertyLastValue<'a, T>
[src]
impl<'a> Property<'a, bool>
[src]
impl<'a> Property<'a, bool>
[src]impl<'a, T> Property<'a, Vec<T, Global>> where
T: Clone,
[src]
impl<'a, T> Property<'a, Vec<T, Global>> where
T: Clone,
[src]impl<'a, T> Property<'a, T> where
T: 'a + Clone + PartialEq<T>,
[src]
impl<'a, T> Property<'a, T> where
T: 'a + Clone + PartialEq<T>,
[src]impl<'a, T1, T2> Property<'a, (T1, T2)> where
T2: 'a + Clone,
T1: 'a + Clone,
[src]
impl<'a, T1, T2> Property<'a, (T1, T2)> where
T2: 'a + Clone,
T1: 'a + Clone,
[src]impl<'a, T1, T2, T3> Property<'a, ((T1, T2), T3)> where
T3: 'a + Clone,
T2: 'a + Clone,
T1: 'a + Clone,
[src]
impl<'a, T1, T2, T3> Property<'a, ((T1, T2), T3)> where
T3: 'a + Clone,
T2: 'a + Clone,
T1: 'a + Clone,
[src]Trait Implementations
impl<'a, T> Add<Property<'a, T>> for Property<'a, T> where
T: Add<T> + Clone,
<T as Add<T>>::Output: Clone,
[src]
impl<'a, T> Add<Property<'a, T>> for Property<'a, T> where
T: Add<T> + Clone,
<T as Add<T>>::Output: Clone,
[src]impl<'a, T> BitAnd<Property<'a, T>> for Property<'a, T> where
T: BitAnd<T> + Clone,
<T as BitAnd<T>>::Output: Clone,
[src]
impl<'a, T> BitAnd<Property<'a, T>> for Property<'a, T> where
T: BitAnd<T> + Clone,
<T as BitAnd<T>>::Output: Clone,
[src]impl<'a, T> BitAnd<T> for Property<'a, T> where
T: BitAnd<T> + Clone,
<T as BitAnd<T>>::Output: Clone,
[src]
impl<'a, T> BitAnd<T> for Property<'a, T> where
T: BitAnd<T> + Clone,
<T as BitAnd<T>>::Output: Clone,
[src]impl<'a, T> BitOr<Property<'a, T>> for Property<'a, T> where
T: BitOr<T> + Clone,
<T as BitOr<T>>::Output: Clone,
[src]
impl<'a, T> BitOr<Property<'a, T>> for Property<'a, T> where
T: BitOr<T> + Clone,
<T as BitOr<T>>::Output: Clone,
[src]impl<'a, T> BitOr<T> for Property<'a, T> where
T: BitOr<T> + Clone,
<T as BitOr<T>>::Output: Clone,
[src]
impl<'a, T> BitOr<T> for Property<'a, T> where
T: BitOr<T> + Clone,
<T as BitOr<T>>::Output: Clone,
[src]impl<'a, T> BitXor<Property<'a, T>> for Property<'a, T> where
T: BitXor<T> + Clone,
<T as BitXor<T>>::Output: Clone,
[src]
impl<'a, T> BitXor<Property<'a, T>> for Property<'a, T> where
T: BitXor<T> + Clone,
<T as BitXor<T>>::Output: Clone,
[src]impl<'a, T> BitXor<T> for Property<'a, T> where
T: BitXor<T> + Clone,
<T as BitXor<T>>::Output: Clone,
[src]
impl<'a, T> BitXor<T> for Property<'a, T> where
T: BitXor<T> + Clone,
<T as BitXor<T>>::Output: Clone,
[src]impl<'a, T> ConstProperty<'a, T> for Property<'a, T> where
T: 'a + Clone,
[src]
impl<'a, T> ConstProperty<'a, T> for Property<'a, T> where
T: 'a + Clone,
[src]impl<'a, 'de, T> Deserialize<'de> for Property<'a, T> where
T: 'a + Clone + Deserialize<'de>,
[src]
impl<'a, 'de, T> Deserialize<'de> for Property<'a, T> where
T: 'a + Clone + Deserialize<'de>,
[src]pub fn deserialize<D>(
deserializer: D
) -> Result<Property<'a, T>, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<Property<'a, T>, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl<'a, T> Div<Property<'a, T>> for Property<'a, T> where
T: Div<T> + Clone,
<T as Div<T>>::Output: Clone,
[src]
impl<'a, T> Div<Property<'a, T>> for Property<'a, T> where
T: Div<T> + Clone,
<T as Div<T>>::Output: Clone,
[src]impl<'a, T> Mul<Property<'a, T>> for Property<'a, T> where
T: Mul<T> + Clone,
<T as Mul<T>>::Output: Clone,
[src]
impl<'a, T> Mul<Property<'a, T>> for Property<'a, T> where
T: Mul<T> + Clone,
<T as Mul<T>>::Output: Clone,
[src]impl<'a, T> Rem<Property<'a, T>> for Property<'a, T> where
T: Rem<T> + Clone,
<T as Rem<T>>::Output: Clone,
[src]
impl<'a, T> Rem<Property<'a, T>> for Property<'a, T> where
T: Rem<T> + Clone,
<T as Rem<T>>::Output: Clone,
[src]impl<'a, T> Serialize for Property<'a, T> where
T: 'a + Clone + Serialize,
[src]
impl<'a, T> Serialize for Property<'a, T> where
T: 'a + Clone + 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,
impl<'a, T> Shl<Property<'a, T>> for Property<'a, T> where
T: Shl<T> + Clone,
<T as Shl<T>>::Output: Clone,
[src]
impl<'a, T> Shl<Property<'a, T>> for Property<'a, T> where
T: Shl<T> + Clone,
<T as Shl<T>>::Output: Clone,
[src]impl<'a, T> Shr<Property<'a, T>> for Property<'a, T> where
T: Shr<T> + Clone,
<T as Shr<T>>::Output: Clone,
[src]
impl<'a, T> Shr<Property<'a, T>> for Property<'a, T> where
T: Shr<T> + Clone,
<T as Shr<T>>::Output: Clone,
[src]impl<'a, T> Sub<Property<'a, T>> for Property<'a, T> where
T: Sub<T> + Clone,
<T as Sub<T>>::Output: Clone,
[src]
impl<'a, T> Sub<Property<'a, T>> for Property<'a, T> where
T: Sub<T> + Clone,
<T as Sub<T>>::Output: Clone,
[src]impl<'a, T> Eq for Property<'a, T> where
T: Eq + Clone,
[src]
T: Eq + Clone,
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for Property<'a, T>
impl<'a, T> !Send for Property<'a, T>
impl<'a, T> !Sync for Property<'a, T>
impl<'a, T> Unpin for Property<'a, T>
impl<'a, T> !UnwindSafe for Property<'a, T>
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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[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> ClosedNeg for T where
T: Neg<Output = T>,
[src]
T: Neg<Output = T>,
impl<T> ClosedNeg for T where
T: Neg<Output = T>,
[src]
T: Neg<Output = T>,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
[src]
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,