Struct mpdpopm::filters_ast::FilterStickerNames
source · pub struct FilterStickerNames<'a> { /* private fields */ }
Expand description
Convenience struct collecting the names for assorted stickers on which one may search
While the search terms ‘rating’, ‘playcount’ &c are fixed & part of the filter grammar offered by mpdpopm, the precise names of the corresponding stickers are configurable & hence must be passed in. Three references to str is already unweildy IMO, and since I expect the number of stickers on which one can search to grow further, I decided to wrap ’em up in a struct. The lifetime is there to support the caller just using a reference to an existing string rather than making a copy.
Implementations§
source§impl<'a> FilterStickerNames<'a>
impl<'a> FilterStickerNames<'a>
Auto Trait Implementations§
impl<'a> Freeze for FilterStickerNames<'a>
impl<'a> RefUnwindSafe for FilterStickerNames<'a>
impl<'a> Send for FilterStickerNames<'a>
impl<'a> Sync for FilterStickerNames<'a>
impl<'a> Unpin for FilterStickerNames<'a>
impl<'a> UnwindSafe for FilterStickerNames<'a>
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