pub struct LSystemRule { /* private fields */ }Expand description
Single stochastic or deterministic L-system production rule (predecessor -> successor).
Implementations§
Source§impl LSystemRule
Implements impl #impl_generics #name #ty_generics #where_clause.
impl LSystemRule
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_predecessor(&self) -> char
pub fn get_mut_predecessor(&mut self) -> &mut char
pub fn set_predecessor(&mut self, val: char) -> &mut Self
pub fn get_successor(&self) -> &String
pub fn get_mut_successor(&mut self) -> &mut String
pub fn set_successor(&mut self, val: String) -> &mut Self
pub fn get_weight(&self) -> f32
pub fn get_mut_weight(&mut self) -> &mut f32
pub fn set_weight(&mut self, val: f32) -> &mut Self
Trait Implementations§
Source§impl Clone for LSystemRule
impl Clone for LSystemRule
Source§impl Debug for LSystemRule
impl Debug for LSystemRule
Source§impl PartialEq for LSystemRule
impl PartialEq for LSystemRule
impl StructuralPartialEq for LSystemRule
Auto Trait Implementations§
impl Forget for LSystemRule
impl Freeze for LSystemRule
impl Move for LSystemRule
impl RefUnwindSafe for LSystemRule
impl Send for LSystemRulewhere
RawVecInner: Send,
impl Sync for LSystemRulewhere
RawVecInner: Sync,
impl Unpin for LSystemRule
impl UnsafeUnpin for LSystemRule
impl UnwindSafe for LSystemRulewhere
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