Struct seitan::Property [−][src]
#[must_use = "Dropping a Property unsubscribes it and all the chain until the origin sender"]pub struct Property<'a, T: Clone + 'a> { /* fields omitted */ }
Implementations
impl<'a, T: Clone + 'a> Property<'a, T>
[src]
impl<'a, T: Clone + 'a> Property<'a, T>
[src]pub fn from_parent<S: Into<StreamRc<'a, T>>>(
parent: S,
initial: T
) -> Property<'a, T>
[src]
parent: S,
initial: T
) -> Property<'a, T>
pub fn new(initial: T) -> Property<'a, T>
[src]
pub fn swap_parent<S: Into<StreamRc<'a, T>>>(&mut self, parent: S)
[src]
pub fn from_sender_stream<S: Into<StreamRc<'a, T>>>(
sender: SenderRc<'a, T>,
stream: S,
initial: T
) -> Property<'a, T>
[src]
sender: SenderRc<'a, T>,
stream: S,
initial: T
) -> Property<'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: Clone, F: FnMut(T) -> T2 + 'a>(
self,
f: F
) -> Property<'b, T2> where
T: 'b,
'a: 'b,
[src]
self,
f: F
) -> Property<'b, T2> where
T: 'b,
'a: 'b,
pub fn inspect<'b, F: Fn(&T) + 'b>(self, f: F) -> Property<'b, T> where
T: 'b,
'a: 'b,
[src]
T: 'b,
'a: 'b,
pub fn filter<'b, F: FnMut(&T) -> bool + 'b>(self, f: F) -> Property<'b, T> where
T: 'b,
'a: 'b,
[src]
T: 'b,
'a: 'b,
pub fn filter_by<'b, 'c>(self, b: Property<'b, bool>) -> Property<'c, T> where
T: 'b,
'a: 'b,
'b: 'c,
[src]
T: 'b,
'a: 'b,
'b: 'c,
pub fn merge<'b, 'c>(self, b: Property<'b, T>) -> Property<'c, T> where
T: 'b,
'a: 'b,
'b: 'c,
[src]
T: 'b,
'a: 'b,
'b: 'c,
pub fn merge_stream<'b, 'c, S: StreamExt<'a, T>>(self, b: S) -> Property<'c, T> where
T: 'b,
'a: 'b,
'b: 'c,
[src]
T: 'b,
'a: 'b,
'b: 'c,
pub fn zip<T2: Clone + 'a>(
self,
other: Property<'a, T2>
) -> Property<'a, (T, T2)>
[src]
self,
other: Property<'a, T2>
) -> Property<'a, (T, T2)>
pub fn stream(self) -> StreamRc<'a, T>
[src]
pub fn is<'b>(&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: Clone> Property<'a, Vec<T>>
[src]
impl<'a, T: Clone> Property<'a, Vec<T>>
[src]impl<'a, T: Clone + PartialEq + 'a> Property<'a, T>
[src]
impl<'a, T: Clone + PartialEq + 'a> Property<'a, T>
[src]impl<'a, T1: Clone + 'a, T2: Clone + 'a> Property<'a, (T1, T2)>
[src]
impl<'a, T1: Clone + 'a, T2: Clone + 'a> Property<'a, (T1, T2)>
[src]impl<'a, T1: Clone + 'a, T2: Clone + 'a, T3: Clone + 'a> Property<'a, ((T1, T2), T3)>
[src]
impl<'a, T1: Clone + 'a, T2: Clone + 'a, T3: Clone + 'a> Property<'a, ((T1, T2), T3)>
[src]Trait Implementations
impl<'a, T: Add + Clone> Add<Property<'a, T>> for Property<'a, T> where
<T as Add>::Output: Clone,
[src]
impl<'a, T: Add + Clone> Add<Property<'a, T>> for Property<'a, T> where
<T as Add>::Output: Clone,
[src]impl<'a, T: BitAnd + Clone> BitAnd<Property<'a, T>> for Property<'a, T> where
<T as BitAnd>::Output: Clone,
[src]
impl<'a, T: BitAnd + Clone> BitAnd<Property<'a, T>> for Property<'a, T> where
<T as BitAnd>::Output: Clone,
[src]impl<'a, T: BitOr + Clone> BitOr<Property<'a, T>> for Property<'a, T> where
<T as BitOr>::Output: Clone,
[src]
impl<'a, T: BitOr + Clone> BitOr<Property<'a, T>> for Property<'a, T> where
<T as BitOr>::Output: Clone,
[src]impl<'a, T: BitXor + Clone> BitXor<Property<'a, T>> for Property<'a, T> where
<T as BitXor>::Output: Clone,
[src]
impl<'a, T: BitXor + Clone> BitXor<Property<'a, T>> for Property<'a, T> where
<T as BitXor>::Output: Clone,
[src]impl<'a, T: Clone + 'a> ConstProperty<'a, T> for Property<'a, T>
[src]
impl<'a, T: Clone + 'a> ConstProperty<'a, T> for Property<'a, T>
[src]impl<'a, 'de, T: Clone + Deserialize<'de> + 'a> Deserialize<'de> for Property<'a, T>
[src]
impl<'a, 'de, T: Clone + Deserialize<'de> + 'a> Deserialize<'de> for Property<'a, T>
[src]fn deserialize<D: Deserializer<'de>>(
deserializer: D
) -> Result<Property<'a, T>, D::Error>
[src]
deserializer: D
) -> Result<Property<'a, T>, D::Error>
impl<'a, T: Div + Clone> Div<Property<'a, T>> for Property<'a, T> where
<T as Div>::Output: Clone,
[src]
impl<'a, T: Div + Clone> Div<Property<'a, T>> for Property<'a, T> where
<T as Div>::Output: Clone,
[src]impl<'a, T: Mul + Clone> Mul<Property<'a, T>> for Property<'a, T> where
<T as Mul>::Output: Clone,
[src]
impl<'a, T: Mul + Clone> Mul<Property<'a, T>> for Property<'a, T> where
<T as Mul>::Output: Clone,
[src]impl<'a, T: Rem + Clone> Rem<Property<'a, T>> for Property<'a, T> where
<T as Rem>::Output: Clone,
[src]
impl<'a, T: Rem + Clone> Rem<Property<'a, T>> for Property<'a, T> where
<T as Rem>::Output: Clone,
[src]impl<'a, T: Shl + Clone> Shl<Property<'a, T>> for Property<'a, T> where
<T as Shl>::Output: Clone,
[src]
impl<'a, T: Shl + Clone> Shl<Property<'a, T>> for Property<'a, T> where
<T as Shl>::Output: Clone,
[src]impl<'a, T: Shr + Clone> Shr<Property<'a, T>> for Property<'a, T> where
<T as Shr>::Output: Clone,
[src]
impl<'a, T: Shr + Clone> Shr<Property<'a, T>> for Property<'a, T> where
<T as Shr>::Output: Clone,
[src]impl<'a, T: Sub + Clone> Sub<Property<'a, T>> for Property<'a, T> where
<T as Sub>::Output: Clone,
[src]
impl<'a, T: Sub + Clone> Sub<Property<'a, T>> for Property<'a, T> where
<T as Sub>::Output: Clone,
[src]impl<'a, T: Eq + Clone> Eq for Property<'a, T>
[src]
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<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>,