pub struct SpringYaml { /* private fields */ }Implementations§
Source§impl SpringYaml
impl SpringYaml
pub fn from_dir(path: impl Into<PathBuf>) -> Self
pub fn from_current_dir() -> Result<Self, YmlError>
pub fn root(&self) -> &Path
pub fn resolve_resource(&self, resource_name: &str) -> PathBuf
pub fn get_yml_content(&self, resource_name: &str) -> Result<String, YmlError>
pub fn load_named(&self, resource_name: &str) -> Result<YamlDoc, YmlError>
pub fn load_active(&self) -> Result<YamlDoc, YmlError>
Trait Implementations§
Source§impl Clone for SpringYaml
impl Clone for SpringYaml
Source§fn clone(&self) -> SpringYaml
fn clone(&self) -> SpringYaml
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpringYaml
impl Debug for SpringYaml
Source§impl PartialEq for SpringYaml
impl PartialEq for SpringYaml
Source§fn eq(&self, other: &SpringYaml) -> bool
fn eq(&self, other: &SpringYaml) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SpringYaml
impl StructuralPartialEq for SpringYaml
Auto Trait Implementations§
impl Freeze for SpringYaml
impl RefUnwindSafe for SpringYaml
impl Send for SpringYaml
impl Sync for SpringYaml
impl Unpin for SpringYaml
impl UnsafeUnpin for SpringYaml
impl UnwindSafe for SpringYaml
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.