pub struct LayerBinding {
pub upper: LayerKind,
pub lower: LayerKind,
pub field_name: &'static str,
pub field_value: u16,
}Expand description
Describes a binding between two layers.
When the upper layer is placed on top of the lower layer, the specified field of the lower layer should be set to the given value.
Fields§
§upper: LayerKindThe layer being placed on top
lower: LayerKindThe layer below
field_name: &'static strThe field name in the lower layer to set
field_value: u16The value to set (as u16 for simplicity; can be cast)
Implementations§
Trait Implementations§
Source§impl Clone for LayerBinding
impl Clone for LayerBinding
Source§fn clone(&self) -> LayerBinding
fn clone(&self) -> LayerBinding
Returns a duplicate 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 Debug for LayerBinding
impl Debug for LayerBinding
impl Copy for LayerBinding
Auto Trait Implementations§
impl Freeze for LayerBinding
impl RefUnwindSafe for LayerBinding
impl Send for LayerBinding
impl Sync for LayerBinding
impl Unpin for LayerBinding
impl UnsafeUnpin for LayerBinding
impl UnwindSafe for LayerBinding
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