pub struct LSystemGrammar { /* private fields */ }Expand description
Deterministic seeded L-system rewriting grammar used to generate botanical branch skeletons.
Implementations§
Source§impl LSystemGrammar
Species grammar constructors and deterministic seeded string rewriting for LSystemGrammar.
impl LSystemGrammar
Species grammar constructors and deterministic seeded string rewriting for LSystemGrammar.
Sourcepub fn for_species(species: TreeSpecies) -> Self
pub fn for_species(species: TreeSpecies) -> Self
Source§impl LSystemGrammar
Implements impl #impl_generics #name #ty_generics #where_clause.
impl LSystemGrammar
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_axiom(&self) -> &String
pub fn get_mut_axiom(&mut self) -> &mut String
pub fn set_axiom(&mut self, val: String) -> &mut Self
pub fn get_rules(&self) -> &Vec<LSystemRule>
pub fn get_mut_rules(&mut self) -> &mut Vec<LSystemRule>
pub fn set_rules(&mut self, val: Vec<LSystemRule>) -> &mut Self
Source§impl LSystemGrammar
Implements impl #impl_generics #name #ty_generics #where_clause.
impl LSystemGrammar
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn new(axiom: String, rules: Vec<LSystemRule>) -> Self
Trait Implementations§
Source§impl Clone for LSystemGrammar
impl Clone for LSystemGrammar
Source§impl Debug for LSystemGrammar
impl Debug for LSystemGrammar
Source§impl PartialEq for LSystemGrammar
impl PartialEq for LSystemGrammar
impl StructuralPartialEq for LSystemGrammar
Auto Trait Implementations§
impl Forget for LSystemGrammar
impl Freeze for LSystemGrammar
impl Move for LSystemGrammar
impl RefUnwindSafe for LSystemGrammar
impl Send for LSystemGrammarwhere
RawVecInner: Send,
impl Sync for LSystemGrammarwhere
RawVecInner: Sync,
impl Unpin for LSystemGrammar
impl UnsafeUnpin for LSystemGrammarwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<LSystemRule>: UnsafeUnpin,
impl UnwindSafe for LSystemGrammarwhere
RawVecInner: UnwindSafe,
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