Enum patternfly_yew::core::Breakpoint
source · pub enum Breakpoint {
None,
Small,
Medium,
Large,
XLarge,
XXLarge,
}
Expand description
Breakpoint definitions
Variants§
Trait Implementations§
source§impl Breakpoint for Breakpoint
impl Breakpoint for Breakpoint
source§impl Clone for Breakpoint
impl Clone for Breakpoint
source§fn clone(&self) -> Breakpoint
fn clone(&self) -> Breakpoint
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Breakpoint
impl Debug for Breakpoint
source§impl Display for Breakpoint
impl Display for Breakpoint
source§impl Ord for Breakpoint
impl Ord for Breakpoint
source§fn cmp(&self, other: &Breakpoint) -> Ordering
fn cmp(&self, other: &Breakpoint) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for Breakpoint
impl PartialEq for Breakpoint
source§fn eq(&self, other: &Breakpoint) -> bool
fn eq(&self, other: &Breakpoint) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for Breakpoint
impl PartialOrd for Breakpoint
source§fn partial_cmp(&self, other: &Breakpoint) -> Option<Ordering>
fn partial_cmp(&self, other: &Breakpoint) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Breakpoint
impl Eq for Breakpoint
impl StructuralPartialEq for Breakpoint
Auto Trait Implementations§
impl Freeze for Breakpoint
impl RefUnwindSafe for Breakpoint
impl Send for Breakpoint
impl Sync for Breakpoint
impl Unpin for Breakpoint
impl UnwindSafe for Breakpoint
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
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
self
to a value of a Properties
struct.source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
self
to a value of a Properties
struct.source§impl<T> IntoTruncateContent for Twhere
T: ToString,
impl<T> IntoTruncateContent for Twhere
T: ToString,
source§fn truncate_before(self, num: usize) -> TruncateContent
fn truncate_before(self, num: usize) -> TruncateContent
This function is supposed to truncate num
characters before the end of the string.
§Bytes, Code Points, and Grapheme Clusters
However, what it actually does is to truncate the string at the next Unicode code point,
after num
bytes (not characters). This is quick and should work reasonably well with
the Latin 1 character set (or, UTF-8 characters which are represented by a single byte).
Given a string with multi-byte code points, or even grapheme clusters (user-perceived characters, which may consists of multiple Unicode code points), this will split at the wrong location.
It will still split, and not skip any data. But it might lead to an unexpected (shorter) end section.
What about an actual correct implementation? That would be possible by using an additional dependency. It would also need to count all code points and grapheme clusters from the start of the string. The question is: is that worth it? Maybe, maybe not!?