pub struct BoardDatabase { /* private fields */ }Implementations§
Source§impl BoardDatabase
impl BoardDatabase
pub fn load() -> Self
Sourcepub fn wokwi_board(&self, chip_id: &str) -> Option<String>
pub fn wokwi_board(&self, chip_id: &str) -> Option<String>
Returns the Wokwi board ID/type (e.g., “board-esp32-devkit-c-v4”) for the given chip This is the value that should be used in diagram.json’s “type” field
Sourcepub fn board_name(&self, chip_id: &str) -> Option<String>
pub fn board_name(&self, chip_id: &str) -> Option<String>
Returns the human-readable board name for the given chip
pub fn gnd_top_left(&self, chip_id: &str) -> Option<String>
pub fn gnd_top_right(&self, chip_id: &str) -> Option<String>
pub fn gnd_bottom_left(&self, chip_id: &str) -> Option<String>
pub fn gnd_bottom_right(&self, chip_id: &str) -> Option<String>
pub fn is_valid_chip(&self, chip_id: &str) -> bool
pub fn all_chips(&self) -> Vec<String>
Sourcepub fn max_heap_size(&self, chip_id: &str) -> Option<usize>
pub fn max_heap_size(&self, chip_id: &str) -> Option<usize>
Get maximum heap size for a chip
Auto Trait Implementations§
impl Freeze for BoardDatabase
impl RefUnwindSafe for BoardDatabase
impl Send for BoardDatabase
impl Sync for BoardDatabase
impl Unpin for BoardDatabase
impl UnwindSafe for BoardDatabase
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