pub struct Map<E: Environment> {
kernel: Rc<Kernel<E>>,
schedule: Schedule,
map_context: MapContextState,
window: <E::MapWindowConfig as MapWindowConfig>::MapWindow,
}Fields
kernel: Rc<Kernel<E>>schedule: Schedulemap_context: MapContextStatewindow: <E::MapWindowConfig as MapWindowConfig>::MapWindowImplementations
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>) -> Result<Self, Error>
pub async fn initialize_renderer(
&mut self,
render_builder: RendererBuilder
) -> Result<(), Error>
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<(), Error>
pub fn context(&self) -> Result<&MapContext, Error>
pub fn context_mut(&mut self) -> Result<&mut MapContext, Error>
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