pub struct Extension { /* private fields */ }
Expand description
扩展实现 组装全局属性和插件
Implementations§
Source§impl Extension
impl Extension
pub fn new() -> Self
pub fn add_global_attribute(&mut self, item: GlobalAttributeItem) -> &mut Self
pub fn get_global_attributes(&self) -> &Vec<GlobalAttributeItem>
pub fn add_plugin(&mut self, plugin: Arc<Plugin>) -> &mut Self
pub fn get_plugins(&self) -> &Vec<Arc<Plugin>>
Trait Implementations§
impl Send for Extension
impl Sync for Extension
Auto Trait Implementations§
impl Freeze for Extension
impl !RefUnwindSafe for Extension
impl Unpin for Extension
impl !UnwindSafe for Extension
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