pub struct Term {
pub name: String,
pub description: String,
pub tags: Vec<String>,
pub cells: Vec<Cell>,
pub width: usize,
pub height: usize,
}
Expand description
Struct representing a term from a lexicon, i.e. a pattern.
Fields§
§name: String
Name of the term.
description: String
Long description of the term. Links to other terms are enclosed in curly braces, e.g. “See also {glider}.”
Tags associated to the term, e.g. “p12”, “c/2 orthogonally”.
cells: Vec<Cell>
Initial alive cells of the term.
width: usize
Initial width of the term’s pattern.
height: usize
Initial height of the term’s pattern.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Term
impl<'de> Deserialize<'de> for Term
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 Term
impl RefUnwindSafe for Term
impl Send for Term
impl Sync for Term
impl Unpin for Term
impl UnwindSafe for Term
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