Struct editor2::display_map::BlockProperties
source · pub struct BlockProperties<P>where
P: Clone,{
pub position: P,
pub height: u8,
pub style: BlockStyle,
pub render: Arc<dyn Fn(&mut BlockContext<'_, '_>) -> AnyElement>,
pub disposition: BlockDisposition,
}
Fields§
§position: P
§height: u8
§style: BlockStyle
§render: Arc<dyn Fn(&mut BlockContext<'_, '_>) -> AnyElement>
§disposition: BlockDisposition
Trait Implementations§
Auto Trait Implementations§
impl<P> !RefUnwindSafe for BlockProperties<P>
impl<P> !Send for BlockProperties<P>
impl<P> !Sync for BlockProperties<P>
impl<P> Unpin for BlockProperties<P>where P: Unpin,
impl<P> !UnwindSafe for BlockProperties<P>
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