pub struct BlockLanguage {
types: HashMap<String, BlockType>,
identifiers: HashMap<String, String>,
}
Fields
types: HashMap<String, BlockType>
identifiers: HashMap<String, String>
Implementations
sourceimpl BlockLanguage
impl BlockLanguage
pub fn new() -> Self
pub fn define_identifier(&mut self, id: &str)
pub fn define(&mut self, typ: BlockType)
pub fn is_identifier(&self, id: &str) -> bool
pub fn list_identifiers(&self) -> Vec<String>
pub fn get_type_outputs(&self, typ: &str) -> Option<&[Option<String>]>
pub fn get_type_inputs(&self, typ: &str) -> Option<&[Option<String>]>
pub fn get_output_name_at_index(&self, typ: &str, idx: usize) -> Option<String>
pub fn type_output_count(&self, typ: &str) -> usize
pub fn get_type_list(&self) -> Vec<(String, String, BlockUserInput)>
Trait Implementations
sourceimpl Clone for BlockLanguage
impl Clone for BlockLanguage
sourcefn clone(&self) -> BlockLanguage
fn clone(&self) -> BlockLanguage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for BlockLanguage
impl Send for BlockLanguage
impl Sync for BlockLanguage
impl Unpin for BlockLanguage
impl UnwindSafe for BlockLanguage
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