#[repr(C)]pub struct FolditPluginDispatchContext {
pub has_focused_entity: u8,
pub padding: [u8; 7],
pub focused_entity_id: u64,
pub selection: *const FolditPluginResidueRef,
pub selection_len: usize,
pub designable: *const FolditPluginResidueRef,
pub designable_len: usize,
}Expand description
Mirror of proto::DispatchContext. Borrowed view; host owns the
selection array for the duration of the call.
Fields§
§has_focused_entity: u80 = no focused entity, 1 = focused_entity_id is valid.
padding: [u8; 7]Padding so focused_entity_id is 8-aligned.
focused_entity_id: u64Focused entity id when has_focused_entity == 1; otherwise
undefined.
selection: *const FolditPluginResidueRefPointer to a host-owned array of selection_len residue refs.
May be null when selection_len == 0.
selection_len: usizeNumber of entries in selection.
designable: *const FolditPluginResidueRefPointer to a host-owned array of designable_len residue refs: the
residues the plugin may redesign (the puzzle’s design mask). May be
null when designable_len == 0.
designable_len: usizeNumber of entries in designable.
Trait Implementations§
Auto Trait Implementations§
impl !Send for FolditPluginDispatchContext
impl !Sync for FolditPluginDispatchContext
impl Freeze for FolditPluginDispatchContext
impl RefUnwindSafe for FolditPluginDispatchContext
impl Unpin for FolditPluginDispatchContext
impl UnsafeUnpin for FolditPluginDispatchContext
impl UnwindSafe for FolditPluginDispatchContext
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