pub struct StarFilter(/* private fields */);Implementations§
Source§impl StarFilter
impl StarFilter
Sourcepub fn then(&mut self, f: StarFilter) -> &mut Self
pub fn then(&mut self, f: StarFilter) -> &mut Self
Create a new filter that calls the current filter, an if true calls a follow-on filter
Sourcepub fn select(skip: usize, limit: usize) -> Self
pub fn select(skip: usize, limit: usize) -> Self
Create a new filter that returns true after the first skip entries up to limit
This can be used to capture a subset of star results, for example
Sourcepub fn brighter_than(magnitude: f32) -> Self
pub fn brighter_than(magnitude: f32) -> Self
Create a new filter that returns true for stars brighter than a certain magnitude
Trait Implementations§
Source§impl Default for StarFilter
impl Default for StarFilter
Source§impl<F: StarFilterFn + 'static> From<F> for StarFilter
impl<F: StarFilterFn + 'static> From<F> for StarFilter
Auto Trait Implementations§
impl Freeze for StarFilter
impl !RefUnwindSafe for StarFilter
impl Send for StarFilter
impl !Sync for StarFilter
impl Unpin for StarFilter
impl !UnwindSafe for StarFilter
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