pub struct Examples {
pub items: Vec<ApiExample>,
pub problems: Vec<String>,
}Expand description
Every example found, plus every malformed region — reported together so one test run names all of them.
Fields§
§items: Vec<ApiExample>The well-formed examples, sorted by id.
problems: Vec<String>One line per malformed region (unterminated, nested, empty, duplicate).
Implementations§
Source§impl Examples
impl Examples
Sourcepub fn for_target(&self, target: &str) -> Vec<&ApiExample>
pub fn for_target(&self, target: &str) -> Vec<&ApiExample>
The examples whose target is exactly target.
Sourcepub fn by_id(&self, id: &str) -> Option<&ApiExample>
pub fn by_id(&self, id: &str) -> Option<&ApiExample>
The example with this id.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Examples
impl RefUnwindSafe for Examples
impl Send for Examples
impl Sync for Examples
impl Unpin for Examples
impl UnsafeUnpin for Examples
impl UnwindSafe for Examples
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