pub struct WhileyTestFile<'a> { /* private fields */ }Implementations§
Source§impl<'a> WhileyTestFile<'a>
impl<'a> WhileyTestFile<'a>
pub fn new(input: &'a str) -> Result<WhileyTestFile<'a>>
Sourcepub fn get(&self, key: &str) -> Option<&Value<'_>>
pub fn get(&self, key: &str) -> Option<&Value<'_>>
Get configuration option associated with the given key.
Sourcepub fn get_int(&self, key: &str) -> Option<i64>
pub fn get_int(&self, key: &str) -> Option<i64>
Get configuration option which is expected to be an integer.
If its not an integer, or no such key exists, None is
returned.
Sourcepub fn get_bool(&self, key: &str) -> Option<bool>
pub fn get_bool(&self, key: &str) -> Option<bool>
Get configuration option which is expected to be an boolean.
If its not a boolean, or no such key exists, None is
returned.
Auto Trait Implementations§
impl<'a> Freeze for WhileyTestFile<'a>
impl<'a> RefUnwindSafe for WhileyTestFile<'a>
impl<'a> Send for WhileyTestFile<'a>
impl<'a> Sync for WhileyTestFile<'a>
impl<'a> Unpin for WhileyTestFile<'a>
impl<'a> UnwindSafe for WhileyTestFile<'a>
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