Struct patternfly_yew::WithBreakpoint
source · pub struct WithBreakpoint<T>where
T: Clone + Debug + PartialEq,{
pub modifier: T,
pub on: Breakpoint,
}Fields§
§modifier: T§on: BreakpointImplementations§
source§impl<T> WithBreakpoint<T>where
T: Clone + Debug + PartialEq,
impl<T> WithBreakpoint<T>where
T: Clone + Debug + PartialEq,
sourcepub fn new(modifier: T) -> Self
pub fn new(modifier: T) -> Self
Examples found in repository?
src/utils/breakpoint.rs (line 245)
244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303
fn from(modifier: T) -> Self {
Self::new(modifier)
}
}
impl<T> From<WithBreakpoint<T>> for WithBreakpoints<T>
where
T: Clone + Debug + PartialEq + ToString,
{
fn from(modifier: WithBreakpoint<T>) -> Self {
WithBreakpoints(vec![modifier])
}
}
impl<T> From<T> for WithBreakpoints<T>
where
T: Clone + Debug + PartialEq + ToString,
{
fn from(modifier: T) -> Self {
WithBreakpoints(vec![modifier.into()])
}
}
impl<T> IntoPropValue<WithBreakpoints<T>> for Vec<WithBreakpoint<T>>
where
T: Clone + Debug + PartialEq + ToString,
{
fn into_prop_value(self) -> WithBreakpoints<T> {
self.into()
}
}
impl<T> IntoPropValue<WithBreakpoints<T>> for &[WithBreakpoint<T>]
where
T: Clone + Debug + PartialEq + ToString,
{
fn into_prop_value(self) -> WithBreakpoints<T> {
self.into()
}
}
impl<T, const N: usize> IntoPropValue<WithBreakpoints<T>> for [WithBreakpoint<T>; N]
where
T: Clone + Debug + PartialEq + ToString,
{
fn into_prop_value(self) -> WithBreakpoints<T> {
self.into()
}
}
impl<T, const N: usize> IntoPropValue<WithBreakpoints<T>> for [T; N]
where
T: Clone + Debug + PartialEq + ToString,
{
fn into_prop_value(self) -> WithBreakpoints<T> {
self.into_iter()
.map(|i| WithBreakpoint::new(i))
.collect::<Vec<WithBreakpoint<T>>>()
.into()
}Trait Implementations§
source§impl<T> Clone for WithBreakpoint<T>where
T: Clone + Debug + PartialEq + Clone,
impl<T> Clone for WithBreakpoint<T>where
T: Clone + Debug + PartialEq + Clone,
source§fn clone(&self) -> WithBreakpoint<T>
fn clone(&self) -> WithBreakpoint<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<T> From<WithBreakpoint<T>> for WithBreakpoints<T>where
T: Clone + Debug + PartialEq + ToString,
impl<T> From<WithBreakpoint<T>> for WithBreakpoints<T>where
T: Clone + Debug + PartialEq + ToString,
source§fn from(modifier: WithBreakpoint<T>) -> Self
fn from(modifier: WithBreakpoint<T>) -> Self
Converts to this type from the input type.
source§impl<T> IntoPropValue<Vec<WithBreakpoint<T>, Global>> for WithBreakpoint<T>where
T: Clone + Debug + PartialEq + ToString,
impl<T> IntoPropValue<Vec<WithBreakpoint<T>, Global>> for WithBreakpoint<T>where
T: Clone + Debug + PartialEq + ToString,
source§fn into_prop_value(self) -> Vec<WithBreakpoint<T>> ⓘ
fn into_prop_value(self) -> Vec<WithBreakpoint<T>> ⓘ
Convert
self to a value of a Properties struct.source§impl<T> PartialEq<WithBreakpoint<T>> for WithBreakpoint<T>where
T: Clone + Debug + PartialEq + PartialEq,
impl<T> PartialEq<WithBreakpoint<T>> for WithBreakpoint<T>where
T: Clone + Debug + PartialEq + PartialEq,
source§fn eq(&self, other: &WithBreakpoint<T>) -> bool
fn eq(&self, other: &WithBreakpoint<T>) -> bool
impl<T> StructuralPartialEq for WithBreakpoint<T>where
T: Clone + Debug + PartialEq,
Auto Trait Implementations§
impl<T> RefUnwindSafe for WithBreakpoint<T>where
T: RefUnwindSafe,
impl<T> Send for WithBreakpoint<T>where
T: Send,
impl<T> Sync for WithBreakpoint<T>where
T: Sync,
impl<T> Unpin for WithBreakpoint<T>where
T: Unpin,
impl<T> UnwindSafe for WithBreakpoint<T>where
T: UnwindSafe,
Blanket Implementations§
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>
Convert
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
Convert
self to a value of a Properties struct.