[−][src]Struct globe::GlobeConfig
Globe configuration struct implementing the builder pattern.
Implementations
impl GlobeConfig
[src]
pub fn new() -> Self
[src]
Creates an empty GlobeConfig
.
pub fn with_camera(self, config: CameraConfig) -> Self
[src]
Sets CameraConfig
to be used by the builder.
pub fn with_radius(self, r: Float) -> Self
[src]
Sets the globe radius.
pub fn use_template(self, t: GlobeTemplate) -> Self
[src]
Selects a template to be used by the builder.
pub fn with_texture(self, texture: &str, palette: Option<Vec<char>>) -> Self
[src]
Sets the day texture to be displayed on the globe.
pub fn with_night_texture(
self,
texture: &str,
palette: Option<Vec<char>>
) -> Self
[src]
self,
texture: &str,
palette: Option<Vec<char>>
) -> Self
Sets the night texture to be displayed on the globe.
pub fn with_texture_at(self, path: &str, palette: Option<Vec<char>>) -> Self
[src]
Sets the day texture to be loaded from the given path.
pub fn display_night(self, b: bool) -> Self
[src]
Sets the night display toggle to the given value.
pub fn build(self) -> Globe
[src]
Builds new Globe
from the collected configuration settings.
Trait Implementations
impl Default for GlobeConfig
[src]
fn default() -> GlobeConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for GlobeConfig
impl Send for GlobeConfig
impl Sync for GlobeConfig
impl Unpin for GlobeConfig
impl UnwindSafe for GlobeConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,