pub struct DockContext<'a> {
pub docs: &'a mut Documents,
pub viewport: &'a mut Viewport,
pub history: &'a mut HistoryPanel,
pub bom: &'a mut BomPanel,
pub assembly_constraints: &'a mut AssemblyConstraintsPanel,
pub wire_harness: &'a mut WireHarnessPanel,
pub pmi: &'a mut PmiPanel,
pub scene: &'a mut ScenePanel,
pub expressions: &'a mut ExpressionsPanel,
pub update_components: &'a mut UpdateComponents,
pub model_store: &'a dyn ModelStore,
}Expand description
The disjoint &mut borrows the dock needs to draw a frame — assembled by the
shell from BrepApp’s fields (all distinct, so the borrow checker allows it).
Fields§
§docs: &'a mut DocumentsThe open documents. The dock reaches the ACTIVE engine through
docs.engine_mut() — a borrow of one FIELD, so it still composes with
the disjoint panel borrows beside it (see crate::document).
viewport: &'a mut Viewport§history: &'a mut HistoryPanel§bom: &'a mut BomPanel§assembly_constraints: &'a mut AssemblyConstraintsPanel§wire_harness: &'a mut WireHarnessPanel§pmi: &'a mut PmiPanel§scene: &'a mut ScenePanel§expressions: &'a mut ExpressionsPanel§update_components: &'a mut UpdateComponents§model_store: &'a dyn ModelStoreAuto Trait Implementations§
impl<'a> !RefUnwindSafe for DockContext<'a>
impl<'a> !Send for DockContext<'a>
impl<'a> !Sync for DockContext<'a>
impl<'a> !UnwindSafe for DockContext<'a>
impl<'a> Freeze for DockContext<'a>
impl<'a> Unpin for DockContext<'a>
impl<'a> UnsafeUnpin for DockContext<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more