pub struct Source { /* private fields */ }Expand description
One configuration source declaration.
See the crate-level documentation for the source string format, parsing rules, and examples.
Implementations§
Source§impl Source
impl Source
pub fn parse(input: &str) -> Result<Source, ParseError>
pub fn source(&self) -> &str
pub fn source_mut(&mut self) -> &mut String
pub fn set_source(&mut self, source: impl Into<String>)
pub fn with_source(self, source: impl Into<String>) -> Source
pub fn options(&self) -> &Options
pub fn options_mut(&mut self) -> &mut Options
pub fn set_options(&mut self, options: Options)
pub fn with_options(self, options: Options) -> Source
pub fn set_option<K, V>(&mut self, key: K, value: V)
pub fn with_option<K, V>(self, key: K, value: V) -> Source
pub fn resource(&self) -> &str
pub fn resource_mut(&mut self) -> &mut String
pub fn set_resource(&mut self, resource: impl Into<String>)
pub fn with_resource(self, resource: impl Into<String>) -> Source
pub fn ignore_errors(&self) -> bool
pub fn set_ignore_errors(&mut self, ignore_errors: bool)
pub fn with_ignore_errors(self, ignore_errors: bool) -> Source
pub fn resource_colon(&self) -> bool
pub fn set_resource_colon(&mut self, resource_colon: bool)
pub fn with_resource_colon(self, resource_colon: bool) -> Source
Trait Implementations§
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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