mirror of
https://github.com/eliasstepanik/egui_node_graph.git
synced 2026-01-11 22:08:28 +00:00
Ignore docstring examples
This commit is contained in:
parent
d8189997ce
commit
b9ed8bd5ab
@ -21,12 +21,12 @@ pub trait DataTypeTrait<UserState>: PartialEq + Eq {
|
|||||||
|
|
||||||
/// The name of this datatype. Return type is specified as Cow<str> because
|
/// The name of this datatype. Return type is specified as Cow<str> because
|
||||||
/// some implementations will need to allocate a new string to provide an
|
/// some implementations will need to allocate a new string to provide an
|
||||||
/// answer while others won't.
|
/// answer while others won't.
|
||||||
///
|
///
|
||||||
/// ## Example (borrowed value)
|
/// ## Example (borrowed value)
|
||||||
/// Use this when you can get the name of the datatype from its fields or as
|
/// Use this when you can get the name of the datatype from its fields or as
|
||||||
/// a &'static str. Prefer this method when possible.
|
/// a &'static str. Prefer this method when possible.
|
||||||
/// ```rust
|
/// ```ignore
|
||||||
/// pub struct DataType { name: String }
|
/// pub struct DataType { name: String }
|
||||||
///
|
///
|
||||||
/// impl DataTypeTrait<()> for DataType {
|
/// impl DataTypeTrait<()> for DataType {
|
||||||
@ -38,7 +38,7 @@ pub trait DataTypeTrait<UserState>: PartialEq + Eq {
|
|||||||
///
|
///
|
||||||
/// ## Example (owned value)
|
/// ## Example (owned value)
|
||||||
/// Use this when you can't derive the name of the datatype from its fields.
|
/// Use this when you can't derive the name of the datatype from its fields.
|
||||||
/// ```rust
|
/// ```ignore
|
||||||
/// pub struct DataType { some_tag: i32 }
|
/// pub struct DataType { some_tag: i32 }
|
||||||
///
|
///
|
||||||
/// impl DataTypeTrait<()> for DataType {
|
/// impl DataTypeTrait<()> for DataType {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user