pub struct DefaultLayoutNode;Expand description
Default layout node that stacks children at (0,0) and uses the bounding size.
Trait Implementations§
Source§impl Clone for DefaultLayoutNode
impl Clone for DefaultLayoutNode
Source§fn clone(&self) -> DefaultLayoutNode
fn clone(&self) -> DefaultLayoutNode
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 moreimpl Copy for DefaultLayoutNode
Source§impl Default for DefaultLayoutNode
impl Default for DefaultLayoutNode
Source§fn default() -> DefaultLayoutNode
fn default() -> DefaultLayoutNode
Returns the “default value” for a type. Read more
impl Eq for DefaultLayoutNode
Source§impl Hash for DefaultLayoutNode
impl Hash for DefaultLayoutNode
Source§impl LayoutModifierNode for DefaultLayoutNode
impl LayoutModifierNode for DefaultLayoutNode
Source§fn measure(
&self,
scope: &mut MeasureScope<'_>,
) -> Result<LayoutResult, MeasurementError>
fn measure( &self, scope: &mut MeasureScope<'_>, ) -> Result<LayoutResult, MeasurementError>
Computes layout for this node when it is applied at the innermost layer.
Source§fn place_children(
&self,
scope: &PlacementScope<'_>,
_inner: &PlacementResult,
) -> Option<PlacementResult>
fn place_children( &self, scope: &PlacementScope<'_>, _inner: &PlacementResult, ) -> Option<PlacementResult>
Recomputes child placements from cached child sizes. Read more
Source§fn measure_content(
&self,
_input: &LayoutModifierInput<'_>,
_child: &mut dyn LayoutModifierChild,
) -> Result<LayoutResult, MeasurementError>
fn measure_content( &self, _input: &LayoutModifierInput<'_>, _child: &mut dyn LayoutModifierChild, ) -> Result<LayoutResult, MeasurementError>
Measures and places the wrapped content.
Source§fn measure_eq(&self, other: &Self) -> bool
fn measure_eq(&self, other: &Self) -> bool
Compares measurement-relevant state for layout dirty tracking.
Source§impl PartialEq for DefaultLayoutNode
impl PartialEq for DefaultLayoutNode
impl StructuralPartialEq for DefaultLayoutNode
Auto Trait Implementations§
impl Freeze for DefaultLayoutNode
impl RefUnwindSafe for DefaultLayoutNode
impl Send for DefaultLayoutNode
impl Sync for DefaultLayoutNode
impl Unpin for DefaultLayoutNode
impl UnsafeUnpin for DefaultLayoutNode
impl UnwindSafe for DefaultLayoutNode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.