Struct js_component_bindgen::names::LocalNames
source · pub struct LocalNames { /* private fields */ }
Implementations§
source§impl<'a> LocalNames
impl<'a> LocalNames
sourcepub fn exclude_globals(&mut self, globals: &[&str])
pub fn exclude_globals(&mut self, globals: &[&str])
provide known global identifier names to exclude from being assigned
sourcepub fn create_once(&'a mut self, goal_name: &str) -> &'a str
pub fn create_once(&'a mut self, goal_name: &str) -> &'a str
get a unique identifier name for a string once (can’t be looked up again)
pub fn get<H: Hash>(&'a self, unique_id: H) -> &'a str
Trait Implementations§
source§impl Default for LocalNames
impl Default for LocalNames
source§fn default() -> LocalNames
fn default() -> LocalNames
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for LocalNames
impl Send for LocalNames
impl Sync for LocalNames
impl Unpin for LocalNames
impl UnwindSafe for LocalNames
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