pub struct BuildingBlock {Show 13 fields
pub includes: IndexSet<String>,
pub data: Vec<String>,
pub setup: Vec<String>,
pub additional_names: HashSet<String>,
pub constructor: Vec<String>,
pub methods_defs: Vec<String>,
pub methods_impls: Vec<String>,
pub main: Vec<String>,
pub main_setup: Vec<String>,
pub additional_vectors: HashSet<String>,
pub additional_matrixes: HashSet<String>,
pub global: Vec<String>,
pub output: Vec<String>,
}Fields§
§includes: IndexSet<String>§data: Vec<String>§setup: Vec<String>§additional_names: HashSet<String>§constructor: Vec<String>§methods_defs: Vec<String>§methods_impls: Vec<String>§main: Vec<String>§main_setup: Vec<String>§additional_vectors: HashSet<String>§additional_matrixes: HashSet<String>§global: Vec<String>§output: Vec<String>Implementations§
Source§impl BuildingBlock
impl BuildingBlock
pub fn new() -> Self
pub fn add_setup(&mut self, setup: &[&str])
pub fn push_setup<I>(&mut self, setup: I)where
I: IntoIterator<Item = String>,
pub fn push_method_impl<I>(&mut self, method_impl: I)where
I: IntoIterator<Item = String>,
Trait Implementations§
Source§impl Clone for BuildingBlock
impl Clone for BuildingBlock
Source§fn clone(&self) -> BuildingBlock
fn clone(&self) -> BuildingBlock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BuildingBlock
impl Debug for BuildingBlock
Source§impl<'de> Deserialize<'de> for BuildingBlock
impl<'de> Deserialize<'de> for BuildingBlock
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
Source§impl From<BuildingBlock> for Context
impl From<BuildingBlock> for Context
Source§fn from(block: BuildingBlock) -> Self
fn from(block: BuildingBlock) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BuildingBlock
impl RefUnwindSafe for BuildingBlock
impl Send for BuildingBlock
impl Sync for BuildingBlock
impl Unpin for BuildingBlock
impl UnwindSafe for BuildingBlock
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more