pub struct LayerRef<'a, L: LayoutBase + ?Sized> {
    pub(super) base: &'a L,
    pub(super) id: L::LayerId,
}
Expand description

Reference to a layer.

Fields

base: &'a L

Reference to the parent data structure.

id: L::LayerId

ID of the layer.

Implementations

Get the layer ID.

Get the name of the layer.

Get a reference to the layer-info structure.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.