pub struct BlockType {
pub category: String,
pub name: String,
pub rows: usize,
pub inputs: Vec<Option<String>>,
pub outputs: Vec<Option<String>>,
pub area_count: usize,
pub user_input: BlockUserInput,
pub description: String,
pub color: usize,
}
Fields
category: String
name: String
rows: usize
inputs: Vec<Option<String>>
outputs: Vec<Option<String>>
area_count: usize
user_input: BlockUserInput
description: String
color: usize
Implementations
sourceimpl BlockType
impl BlockType
fn touch_contains(&self, block: &mut Block)
pub fn instanciate_block(
&self,
user_input: Option<String>,
id_gen: BlockIDGenerator
) -> Box<Block>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BlockType
impl Send for BlockType
impl Sync for BlockType
impl Unpin for BlockType
impl UnwindSafe for BlockType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more