pub struct BreakpointSet { /* private fields */ }Expand description
A collection of breakpoints ordered by threshold.
Implementations§
Source§impl BreakpointSet
impl BreakpointSet
pub fn new(breakpoints: Vec<Breakpoint>) -> Self
pub fn defaults() -> Self
pub fn breakpoints(&self) -> &[Breakpoint]
pub fn matching(&self, width: u32) -> Option<Breakpoint>
Trait Implementations§
Source§impl Clone for BreakpointSet
impl Clone for BreakpointSet
Source§fn clone(&self) -> BreakpointSet
fn clone(&self) -> BreakpointSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BreakpointSet
impl Debug for BreakpointSet
Source§impl Default for BreakpointSet
impl Default for BreakpointSet
Source§fn default() -> BreakpointSet
fn default() -> BreakpointSet
Returns the “default value” for a type. Read more
Source§impl PartialEq for BreakpointSet
impl PartialEq for BreakpointSet
Source§fn eq(&self, other: &BreakpointSet) -> bool
fn eq(&self, other: &BreakpointSet) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for BreakpointSet
impl StructuralPartialEq for BreakpointSet
Auto Trait Implementations§
impl Freeze for BreakpointSet
impl RefUnwindSafe for BreakpointSet
impl Send for BreakpointSet
impl Sync for BreakpointSet
impl Unpin for BreakpointSet
impl UnsafeUnpin for BreakpointSet
impl UnwindSafe for BreakpointSet
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