Skip to main content

DebugInitialConfiguredParentElement

Struct DebugInitialConfiguredParentElement 

Source
pub struct DebugInitialConfiguredParentElement<'b, 'element, Configurer: ConfigureElements<ConfigType>, ConfigType: Clone + Serialize, List: Copy> { /* private fields */ }
Expand description

Root debug wrapper used at the start of UiFn::draw_in.

Wrap the layout root ConfiguredParentElement and pass a mutable reference to the declaration recorder. All child elements created via new_element record Open before delegating to the inner layout.

Implementations§

Source§

impl<'b, 'element, Configurer: ConfigureElements<ConfigType>, ConfigType: Clone + Serialize, List: Copy> DebugInitialConfiguredParentElement<'b, 'element, Configurer, ConfigType, List>

Source

pub fn new( internal: &'b mut ConfiguredParentElement<'element, Configurer, ConfigType>, interface_recorder: &'b mut LeafedInterfaceDeclaration<ConfigType, List>, ) -> Self

Creates a root wrapper that records into interface_recorder.

Source

pub fn new_element( &mut self, ) -> DebugOpenElement<'_, Configurer, ConfigType, List>
where Self: Sized,

Opens a new child element, recording Open in the declaration stream.

Returns a DebugOpenElement that can be used to configure the new element.

Source

pub fn close_element(self)

Closes the root element and records Close in the declaration stream.

It is not strictly necessary to call this method; closing also occurs when the wrapper is dropped after all child DebugOpenElement handles are released.

Auto Trait Implementations§

§

impl<'b, 'element, Configurer, ConfigType, List> !RefUnwindSafe for DebugInitialConfiguredParentElement<'b, 'element, Configurer, ConfigType, List>

§

impl<'b, 'element, Configurer, ConfigType, List> !UnwindSafe for DebugInitialConfiguredParentElement<'b, 'element, Configurer, ConfigType, List>

§

impl<'b, 'element, Configurer, ConfigType, List> Freeze for DebugInitialConfiguredParentElement<'b, 'element, Configurer, ConfigType, List>

§

impl<'b, 'element, Configurer, ConfigType, List> Send for DebugInitialConfiguredParentElement<'b, 'element, Configurer, ConfigType, List>
where List: Send, ConfigType: Send, Configurer: Send,

§

impl<'b, 'element, Configurer, ConfigType, List> Sync for DebugInitialConfiguredParentElement<'b, 'element, Configurer, ConfigType, List>
where List: Sync, ConfigType: Sync, Configurer: Sync,

§

impl<'b, 'element, Configurer, ConfigType, List> Unpin for DebugInitialConfiguredParentElement<'b, 'element, Configurer, ConfigType, List>

§

impl<'b, 'element, Configurer, ConfigType, List> UnsafeUnpin for DebugInitialConfiguredParentElement<'b, 'element, Configurer, ConfigType, List>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.