[][src]Struct globe::GlobeConfig

pub struct GlobeConfig { /* fields omitted */ }

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]

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]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.