Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ui/src/hook/debounced_value/impl.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use super::*;

/// Inherent implementation of [`DebouncedValue`].
impl<T: Clone + PartialEq + Default + 'static> DebouncedValue<T> {
/// Schedules `next` to become the emitted value. The
/// commit happens on the next `tick` call at or after
Expand Down Expand Up @@ -81,6 +82,7 @@ impl<T: Clone + PartialEq + Default + 'static> DebouncedValue<T> {
}
}

/// Debug formatting for [`DebouncedValue`].
impl<T: Clone + PartialEq + Debug + Default + 'static> Display for DebouncedValue<T> {
/// Formats the [`DebouncedValue`] via the supplied formatter.
///
Expand Down
3 changes: 3 additions & 0 deletions ui/src/hook/lazy/impl.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use super::*;

/// Equality for [`LoadState`].
impl<T: PartialEq> PartialEq for LoadState<T> {
/// Returns `true` when `self` and `other` are equivalent by the [`PartialEq`] contract.
///
Expand All @@ -21,6 +22,7 @@ impl<T: PartialEq> PartialEq for LoadState<T> {
}
}

/// Inherent implementation of [`LazyComponent`].
impl<T: Clone + PartialEq + 'static> LazyComponent<T> {
/// Creates a new lazy component with the given
/// factory. The factory is NOT called yet.
Expand Down Expand Up @@ -140,6 +142,7 @@ impl<T: Clone + PartialEq + 'static> LazyComponent<T> {
}
}

/// Debug formatting for [`LazyComponent`].
impl<T: Clone + PartialEq + Debug + 'static> Debug for LazyComponent<T> {
/// Formats the [`LazyComponent`] via the supplied formatter.
///
Expand Down
3 changes: 3 additions & 0 deletions ui/src/hook/previous/impl.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use super::*;

/// Inherent implementation of [`Previous`].
impl<T: Clone + PartialEq + 'static> Previous<T> {
/// Creates a new `Previous` with no recorded value.
/// The `previous` signal starts at `None`.
Expand Down Expand Up @@ -40,6 +41,7 @@ impl<T: Clone + PartialEq + 'static> Previous<T> {
}
}

/// Debug formatting for [`Previous`].
impl<T: Clone + PartialEq + Debug + 'static> Display for Previous<T> {
/// Formats the [`Previous`] via the supplied formatter.
///
Expand All @@ -58,6 +60,7 @@ impl<T: Clone + PartialEq + Debug + 'static> Display for Previous<T> {
}
}

/// Default-construction for [`Previous`].
impl<T: Clone + PartialEq + 'static> Default for Previous<T> {
/// Constructs a default [`Previous`] value.
fn default() -> Self {
Expand Down
4 changes: 4 additions & 0 deletions ui/src/hook/suspense/impl.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use super::*;

/// Inherent implementation of [`SuspenseHandle`].
impl<T: Clone + PartialEq + 'static> SuspenseHandle<T> {
/// Creates a new `SuspenseHandle` in the `Pending`
/// phase.
Expand Down Expand Up @@ -37,13 +38,15 @@ impl<T: Clone + PartialEq + 'static> SuspenseHandle<T> {
}
}

/// Default-construction for [`SuspenseHandle`].
impl<T: Clone + PartialEq + 'static> Default for SuspenseHandle<T> {
/// Constructs a default [`SuspenseHandle`] value.
fn default() -> Self {
Self::new()
}
}

/// Debug formatting for [`SuspenseHandle`].
impl<T: Clone + PartialEq + Debug + 'static> Display for SuspenseHandle<T> {
/// Formats the [`SuspenseHandle`] via the supplied formatter.
///
Expand All @@ -59,6 +62,7 @@ impl<T: Clone + PartialEq + Debug + 'static> Display for SuspenseHandle<T> {
}
}

/// Equality for [`SuspensePhase`].
impl<T: PartialEq> PartialEq for SuspensePhase<T> {
/// Returns `true` when `self` and `other` are equivalent by the [`PartialEq`] contract.
///
Expand Down
2 changes: 2 additions & 0 deletions ui/src/hook/throttled_value/impl.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use super::*;

/// Inherent implementation of [`ThrottledValue`].
impl<T: Clone + PartialEq + Default + 'static> ThrottledValue<T> {
/// Sends `next` through the throttle.
///
Expand Down Expand Up @@ -107,6 +108,7 @@ impl<T: Clone + PartialEq + Default + 'static> ThrottledValue<T> {
}
}

/// Debug formatting for [`ThrottledValue`].
impl<T: Clone + PartialEq + Debug + Default + 'static> Display for ThrottledValue<T> {
/// Formats the [`ThrottledValue`] via the supplied formatter.
///
Expand Down
5 changes: 5 additions & 0 deletions ui/src/hook/use_async/impl.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use super::*;

/// Hook-context teardown for [`UseAsyncSlot`].
impl<T, L> Drop for UseAsyncSlot<T, L>
where
T: Clone + PartialEq + 'static,
Expand All @@ -17,6 +18,7 @@ where
}
}

/// Inherent implementation of [`UseAsyncHandle`] — slot lifecycle internals.
impl<T, L> UseAsyncHandle<T, L>
where
T: Clone + PartialEq + 'static,
Expand Down Expand Up @@ -58,6 +60,7 @@ where
}
}

/// Inherent implementation of [`UseAsyncHandle`] — public reactive API.
impl<T, L> UseAsyncHandle<T, L>
where
T: Clone + PartialEq + 'static,
Expand Down Expand Up @@ -152,6 +155,7 @@ impl HasLoadingHint for () {
fn empty() -> Self {}
}

/// Debug formatting for [`UseAsyncHandle`].
impl<T, L> core::fmt::Debug for UseAsyncHandle<T, L>
where
T: Clone + PartialEq + 'static,
Expand All @@ -176,6 +180,7 @@ where
}
}

/// Default-construction for [`UseAsyncHandle`].
impl<T, L> Default for UseAsyncHandle<T, L>
where
T: Clone + PartialEq + 'static,
Expand Down