pub struct StaticBridgeLoader { /* private fields */ }Expand description
Static bridge loader for loading bridges from compiled code
Implementations§
Source§impl StaticBridgeLoader
impl StaticBridgeLoader
Sourcepub fn register_factory<F>(&mut self, factory: F)
pub fn register_factory<F>(&mut self, factory: F)
Register a factory function that creates a bridge
Sourcepub fn registry(&self) -> &BridgeRegistry
pub fn registry(&self) -> &BridgeRegistry
Get a reference to the registry
Sourcepub fn registry_mut(&mut self) -> &mut BridgeRegistry
pub fn registry_mut(&mut self) -> &mut BridgeRegistry
Get a mutable reference to the registry
Trait Implementations§
Source§impl BridgeLoader for StaticBridgeLoader
impl BridgeLoader for StaticBridgeLoader
Source§fn load_bridges(&mut self) -> Result<Vec<BoxedBridge>>
fn load_bridges(&mut self) -> Result<Vec<BoxedBridge>>
Load bridges from a source
Auto Trait Implementations§
impl !RefUnwindSafe for StaticBridgeLoader
impl !UnwindSafe for StaticBridgeLoader
impl Freeze for StaticBridgeLoader
impl Send for StaticBridgeLoader
impl Sync for StaticBridgeLoader
impl Unpin for StaticBridgeLoader
impl UnsafeUnpin for StaticBridgeLoader
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more