pub struct ConformanceFile {
pub types: BTreeMap<String, TypeEntry>,
}Expand description
A conformance test file containing test data for multiple types.
The file is a TOML document with sections for each type name.
Fields§
§types: BTreeMap<String, TypeEntry>Test data indexed by stringified type name.
Implementations§
Source§impl ConformanceFile
impl ConformanceFile
Sourcepub fn load(path: &Path) -> Result<Self, ConformanceError>
pub fn load(path: &Path) -> Result<Self, ConformanceError>
Load a conformance file from the given path.
Sourcepub fn load_or_default(path: &Path) -> Result<Self, ConformanceError>
pub fn load_or_default(path: &Path) -> Result<Self, ConformanceError>
Load a conformance file, returning an empty file if it doesn’t exist.
Trait Implementations§
Source§impl Debug for ConformanceFile
impl Debug for ConformanceFile
Source§impl Default for ConformanceFile
impl Default for ConformanceFile
Source§fn default() -> ConformanceFile
fn default() -> ConformanceFile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConformanceFile
impl<'de> Deserialize<'de> for ConformanceFile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ConformanceFile
impl RefUnwindSafe for ConformanceFile
impl Send for ConformanceFile
impl Sync for ConformanceFile
impl Unpin for ConformanceFile
impl UnwindSafe for ConformanceFile
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more