pub struct WorldApi<'g>(/* private fields */);Expand description
world.*: the ground under the page.
Implementations§
Source§impl WorldApi<'_>
impl WorldApi<'_>
pub fn scale(self) -> Result<f64>
Sourcepub fn at(self, expression: Value) -> Result<Arg>
pub fn at(self, expression: Value) -> Result<Arg>
A Mapbox expression’s value at this frame: ["step", ["zoom"], 1, 15, 3].
pub fn bearing(self) -> Result<f64>
Auto Trait Implementations§
impl<'g> !UnwindSafe for WorldApi<'g>
impl<'g> Forget for WorldApi<'g>
impl<'g> Freeze for WorldApi<'g>
impl<'g> Move for WorldApi<'g>
impl<'g> RefUnwindSafe for WorldApi<'g>
impl<'g> Send for WorldApi<'g>where
RawVecInner: Send,
RawTable<usize>: Send,
BoxRaw<Op>: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
NodeRef<Owned, String, Name, LeafOrInternal>: Send,
BoxRaw<(String, Name)>: Send,
NodeRef<Owned, String, RoadClassSpec, LeafOrInternal>: Send,
BoxRaw<(String, RoadClassSpec)>: Send,
&'static str: Send,
BoxRaw<Expr>: Send,
Arc<Mutex<HashMap<String, Option<Look>>>>: Send,
BoxRaw<Grammar>: Send,
BoxRaw<Proj>: Send,
RawTable<(String, Arg)>: Send,
impl<'g> Sync for WorldApi<'g>where
RawVecInner: Sync,
RawTable<usize>: Sync,
BoxRaw<Op>: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
NodeRef<Owned, String, Name, LeafOrInternal>: Sync,
BoxRaw<(String, Name)>: Sync,
NodeRef<Owned, String, RoadClassSpec, LeafOrInternal>: Sync,
BoxRaw<(String, RoadClassSpec)>: Sync,
BoxRaw<Expr>: Sync,
Arc<Mutex<HashMap<String, Option<Look>>>>: Sync,
BoxRaw<Grammar>: Sync,
BoxRaw<Proj>: Sync,
RawTable<(String, Arg)>: Sync,
impl<'g> Unpin for WorldApi<'g>
impl<'g> UnsafeUnpin for WorldApi<'g>where
&'g mut Graph: UnsafeUnpin,
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
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