pub struct Map<E: Environment> {
kernel: Rc<Kernel<E>>,
schedule: Schedule,
map_context: CurrentMapContext,
window: <E::MapWindowConfig as MapWindowConfig>::MapWindow,
plugins: Vec<Box<dyn Plugin<E>>>,
}Fields
kernel: Rc<Kernel<E>>schedule: Schedulemap_context: CurrentMapContextwindow: <E::MapWindowConfig as MapWindowConfig>::MapWindowplugins: Vec<Box<dyn Plugin<E>>>Implementations
sourceimpl<E: Environment> Map<E>where
<<E as Environment>::MapWindowConfig as MapWindowConfig>::MapWindow: HeadedMapWindow,
impl<E: Environment> Map<E>where
<<E as Environment>::MapWindowConfig as MapWindowConfig>::MapWindow: HeadedMapWindow,
pub fn new(
style: Style,
kernel: Kernel<E>,
renderer_builder: RendererBuilder,
plugins: Vec<Box<dyn Plugin<E>>>
) -> Result<Self, MapError>
pub async fn initialize_renderer(&mut self) -> Result<(), MapError>
pub fn window_mut(
&mut self
) -> &mut <E::MapWindowConfig as MapWindowConfig>::MapWindow
pub fn window(&self) -> &<E::MapWindowConfig as MapWindowConfig>::MapWindow
pub fn has_renderer(&self) -> bool
pub fn run_schedule(&mut self) -> Result<(), MapError>
pub fn context(&self) -> Result<&MapContext, MapError>
pub fn context_mut(&mut self) -> Result<&mut MapContext, MapError>
pub fn kernel(&self) -> &Rc<Kernel<E>>
Auto Trait Implementations
impl<E> !RefUnwindSafe for Map<E>
impl<E> !Send for Map<E>
impl<E> !Sync for Map<E>
impl<E> Unpin for Map<E>where
<<E as Environment>::MapWindowConfig as MapWindowConfig>::MapWindow: Unpin,
impl<E> !UnwindSafe for Map<E>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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. Read morefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read morefn 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. Read morefn 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. Read more