Struct gtp::EntityBuilder [−][src]
pub struct EntityBuilder { /* fields omitted */ }
Expand description
Helper class for constructing an Entity data structure.
Use it like this:
use gtp; let mut eb = gtp::EntityBuilder::new(); eb.v((19, 19)); assert_eq!(eb.build().to_string(), "T19");
Alternatively you can use the entity
function:
use gtp; let ent = gtp::entity(|eb| eb.v((19, 19))); assert_eq!(ent.to_string(), "T19");
Implementations
Constructs a new entity builder.
Please note there are helper functions like entity
Or args
of Command.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for EntityBuilder
impl Send for EntityBuilder
impl Sync for EntityBuilder
impl Unpin for EntityBuilder
impl UnwindSafe for EntityBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more