Struct panoramix::elements::EmptyElement [−][src]
A placeholder element.
This does not represent a blank area or a zero-sized widget. Rather, this represents the absence of a widget. So, for instance:
Column!(
Label::new("Hello world!"),
EmptyElement::new(),
)
is equivalent to:
Column!(
Label::new("Hello world!"),
)
in terms of layout computation and everything else.
Events
Doesn’t emit events.
Implementations
impl<CpEvent, CpState> EmptyElement<CpEvent, CpState>
[src]
pub fn new() -> EmptyElement<CpEvent, CpState>
[src]
Trait Implementations
impl<CpEvent: Clone, CpState: Clone> Clone for EmptyElement<CpEvent, CpState>
[src]
fn clone(&self) -> EmptyElement<CpEvent, CpState>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<CpEvent, CpState> Debug for EmptyElement<CpEvent, CpState>
[src]
impl<CpEvent, CpState> Default for EmptyElement<CpEvent, CpState>
[src]
impl<CpEvent, CpState> Element<CpEvent, CpState> for EmptyElement<CpEvent, CpState>
[src]
type Event = NoEvent
The type of events this element can raise. Read more
type AggregateChildrenState = ()
type BuildOutput = EmptyElementData<CpEvent, CpState>
fn build(self, _prev_state: ()) -> (EmptyElementData<CpEvent, CpState>, ())
[src]
impl<CpEvent: Eq, CpState: Eq> Eq for EmptyElement<CpEvent, CpState>
[src]
impl<CpEvent: Hash, CpState: Hash> Hash for EmptyElement<CpEvent, CpState>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<CpEvent: PartialEq, CpState: PartialEq> PartialEq<EmptyElement<CpEvent, CpState>> for EmptyElement<CpEvent, CpState>
[src]
fn eq(&self, other: &EmptyElement<CpEvent, CpState>) -> bool
[src]
fn ne(&self, other: &EmptyElement<CpEvent, CpState>) -> bool
[src]
impl<CpEvent, CpState> StructuralEq for EmptyElement<CpEvent, CpState>
[src]
impl<CpEvent, CpState> StructuralPartialEq for EmptyElement<CpEvent, CpState>
[src]
Auto Trait Implementations
impl<CpEvent, CpState> RefUnwindSafe for EmptyElement<CpEvent, CpState> where
CpEvent: RefUnwindSafe,
CpState: RefUnwindSafe,
CpEvent: RefUnwindSafe,
CpState: RefUnwindSafe,
impl<CpEvent, CpState> Send for EmptyElement<CpEvent, CpState> where
CpEvent: Send,
CpState: Send,
CpEvent: Send,
CpState: Send,
impl<CpEvent, CpState> Sync for EmptyElement<CpEvent, CpState> where
CpEvent: Sync,
CpState: Sync,
CpEvent: Sync,
CpState: Sync,
impl<CpEvent, CpState> Unpin for EmptyElement<CpEvent, CpState> where
CpEvent: Unpin,
CpState: Unpin,
CpEvent: Unpin,
CpState: Unpin,
impl<CpEvent, CpState> UnwindSafe for EmptyElement<CpEvent, CpState> where
CpEvent: UnwindSafe,
CpState: UnwindSafe,
CpEvent: UnwindSafe,
CpState: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AnyEq for T where
T: Any + PartialEq<T>,
T: Any + PartialEq<T>,
pub fn equals(&self, other: &(dyn Any + 'static)) -> bool
pub fn as_any(&self) -> &(dyn Any + 'static)
impl<T> AnyState for T where
T: Clone + Default + Debug + PartialEq<T> + 'static,
[src]
T: Clone + Default + Debug + PartialEq<T> + 'static,
pub fn as_any(&Self) -> &(dyn Any + 'static)
[src]
pub fn as_mut_any(&mut Self) -> &mut (dyn Any + 'static)
[src]
pub fn dyn_clone(&Self) -> Box<dyn AnyState + 'static, Global>
[src]
pub fn dyn_eq(&Self, &Box<dyn AnyState + 'static, Global>) -> bool
[src]
fn print_type(&self)
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> RoundFrom<T> for T
pub fn round_from(x: T) -> T
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
U: RoundFrom<T>,
pub fn round_into(self) -> U
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,