Struct cheval::element::ElementConfig
source · [−]pub struct ElementConfig { /* private fields */ }
Implementations
sourceimpl ElementConfig
impl ElementConfig
pub fn new(config_path: &Path) -> Self
pub fn set(&mut self, name: &str, value: &str)
pub fn set_u32(&mut self, name: &str, value: u32)
pub fn get_u32_or(&self, name: &str, default: u32) -> u32
pub fn get_f32_or(&self, name: &str, default: f32) -> f32
pub fn get_bakedexpression(&self, name: &str, default: &str) -> BakedExpression
pub fn get_bakedexpression_empty(&self, name: &str) -> BakedExpression
pub fn get_bakedexpression_u32(
&self,
name: &str,
default: u32
) -> BakedExpression
pub fn get_bakedexpression_f32(
&self,
name: &str,
default: f32
) -> BakedExpression
pub fn get_bakedexpression_string(
&self,
name: &str,
default: &str
) -> BakedExpression
pub fn get_string_or(&self, name: &str, default: &str) -> String
pub fn get_color_or(&self, name: &str, default: u32) -> u32
pub fn get_path_or(&self, name: &str, default: &str) -> String
pub fn get_bool_or(&self, name: &str, default: bool) -> bool
pub fn config_path(&self) -> &PathBuf
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ElementConfig
impl Send for ElementConfig
impl Sync for ElementConfig
impl Unpin for ElementConfig
impl UnwindSafe for ElementConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more