pub struct ReferencePath<'r, P: Path + ?Sized>(/* private fields */);
Expand description
A Path that is made from borrowing an owned path.
See as_ref_path.
Trait Implementations§
Source§impl<'r, P: PathExtGuaranteed + ?Sized> PathExtGuaranteed for ReferencePath<'r, P>
impl<'r, P: PathExtGuaranteed + ?Sized> PathExtGuaranteed for ReferencePath<'r, P>
Source§fn borrow(&self) -> Ref<'_, <Self as Path>::Out>
fn borrow(&self) -> Ref<'_, <Self as Path>::Out>
Borrow the data at this path immutably. Read more
Source§fn borrow_mut(&self) -> BorrowMutGuard<'_, Self>
fn borrow_mut(&self) -> BorrowMutGuard<'_, Self>
Borrow the data at this path mutably, notifying all the relevant
change listeners when the returned borrow guard is dropped. Read more
Source§fn borrow_mut_without_notifying(&self) -> RefMut<'_, <Self as Path>::Out>
fn borrow_mut_without_notifying(&self) -> RefMut<'_, <Self as Path>::Out>
Borrow the data at this path mutably without notifying any listener. Read more
impl<'r, P: Path + ?Sized> Copy for ReferencePath<'r, P>
Auto Trait Implementations§
impl<'r, P> Freeze for ReferencePath<'r, P>where
P: ?Sized,
impl<'r, P> RefUnwindSafe for ReferencePath<'r, P>where
P: RefUnwindSafe + ?Sized,
impl<'r, P> Send for ReferencePath<'r, P>
impl<'r, P> Sync for ReferencePath<'r, P>
impl<'r, P> Unpin for ReferencePath<'r, P>where
P: ?Sized,
impl<'r, P> UnwindSafe for ReferencePath<'r, P>where
P: RefUnwindSafe + ?Sized,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<P> PathExt for P
impl<P> PathExt for P
Source§fn borrow_opt(&self) -> Option<Ref<'_, <Self as Path>::Out>>
fn borrow_opt(&self) -> Option<Ref<'_, <Self as Path>::Out>>
Borrow the data at this path immutably. Read more
Source§fn borrow_opt_mut(&self) -> Option<BorrowMutGuard<'_, Self>>
fn borrow_opt_mut(&self) -> Option<BorrowMutGuard<'_, Self>>
Borrow the data at this path mutably, notifying all the relevant
change listeners when the returned borrow guard is dropped. Read more
Source§fn borrow_opt_mut_without_notifying(
&self,
) -> Option<RefMut<'_, <Self as Path>::Out>>
fn borrow_opt_mut_without_notifying( &self, ) -> Option<RefMut<'_, <Self as Path>::Out>>
Borrow the data at this path mutably without notifying any listener. Read more
Source§fn notify_changed(&self)
fn notify_changed(&self)
Notify all listeners that the data at this location has changed. Read more
Source§fn set_opt(&self, data: Self::Out) -> Result<(), Self::Out>
fn set_opt(&self, data: Self::Out) -> Result<(), Self::Out>
Set the data identified by this path, notifying listeners. Read more
Source§fn until_change(&self) -> UntilChange<'_>
fn until_change(&self) -> UntilChange<'_>
Source§fn signal_stream(&self, fire_immediately: bool) -> SignalStream<'_, Self>
fn signal_stream(&self, fire_immediately: bool) -> SignalStream<'_, Self>
Source§fn for_each<C: FnMut(&Self::Out)>(&self, closure: C) -> ForEach<'_, Self, C> ⓘ
fn for_each<C: FnMut(&Self::Out)>(&self, closure: C) -> ForEach<'_, Self, C> ⓘ
Execute the given function with the data as argument. Repeat every time
the data changes. Read more
Source§fn for_each_async<F: Future<Output = ()>, C: FnMut(&Self::Out) -> F>(
&self,
closure: C,
) -> ForEachAsync<'_, Self, F, C>
fn for_each_async<F: Future<Output = ()>, C: FnMut(&Self::Out) -> F>( &self, closure: C, ) -> ForEachAsync<'_, Self, F, C>
Execute the given async function (a function returning Future)
with the data as argument. Repeat every time the data changes. Read more
Source§fn bind_for_each<C: FnMut(&Self::Out), I: Stream<Item = Self::Out>>(
&self,
on_change: C,
incoming_changes: I,
) -> BindForEach<'_, Self, C, I> ⓘ
fn bind_for_each<C: FnMut(&Self::Out), I: Stream<Item = Self::Out>>( &self, on_change: C, incoming_changes: I, ) -> BindForEach<'_, Self, C, I> ⓘ
For making a two-way binding. Read more
Source§fn until_bubbling_change(&self) -> UntilChange<'_>
fn until_bubbling_change(&self) -> UntilChange<'_>
Source§fn build_path(self) -> <Self::Out as Trackable>::PathBuilder<Self>
fn build_path(self) -> <Self::Out as Trackable>::PathBuilder<Self>
Gives a PathBuilder for creating a
path that continues from this path. Read more
Source§fn as_ref_path(
&self,
) -> <Self::Out as Trackable>::PathBuilder<ReferencePath<'_, Self>>
fn as_ref_path( &self, ) -> <Self::Out as Trackable>::PathBuilder<ReferencePath<'_, Self>>
Create a new Path from borrowing this path. Read more