pub struct ApiExample {
pub id: String,
pub target: String,
pub caption: String,
pub source: String,
pub code: String,
}Expand description
One extracted example.
Fields§
§id: String<guest>:<target>, e.g. comment:grammar-callbacks.apply-operator.
Unique; guides quote an example by this id.
target: StringWhat it illustrates: <interface> or <interface>.<item>.
caption: StringOne line saying what the example does.
source: StringRepo-relative source file, /-separated.
code: StringThe region’s code, dedented, without the marker lines.
Implementations§
Trait Implementations§
Source§impl Clone for ApiExample
impl Clone for ApiExample
Source§fn clone(&self) -> ApiExample
fn clone(&self) -> ApiExample
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 ApiExample
impl Debug for ApiExample
impl Eq for ApiExample
Source§impl PartialEq for ApiExample
impl PartialEq for ApiExample
impl StructuralPartialEq for ApiExample
Auto Trait Implementations§
impl Freeze for ApiExample
impl RefUnwindSafe for ApiExample
impl Send for ApiExample
impl Sync for ApiExample
impl Unpin for ApiExample
impl UnsafeUnpin for ApiExample
impl UnwindSafe for ApiExample
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