Skip to main content

ExcludeHidden

Trait ExcludeHidden 

Source
pub trait ExcludeHidden: Sized {
    // Required method
    fn without_excluded(self) -> Self;
}
Expand description

Drop the user’s hidden items from a repository result.

Implemented as a trait so the hybrid repository’s generic result helpers — where the cache and server legs of every cache-first race converge — can apply it to whatever they are carrying, instead of each query having to remember to.

TRACES: UR-076 | DR-209

Required Methods§

Source

fn without_excluded(self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ExcludeHidden for Vec<MediaItem>

Source§

fn without_excluded(self) -> Self

Implementors§