pub trait ReferenceBoxMutPointer<T> {
// Required methods
fn with<Block, Return>(&self, block: Block) -> Return
where Block: FnOnce(&mut T) -> Return;
fn with_value<Block, Return>(&self, block: Block) -> Return
where Block: FnOnce(T) -> Return,
T: Copy;
fn with_not_null<Block>(&self, block: Block)
where Block: FnOnce(&mut T);
fn with_not_null_return<Block, Return>(
&self,
default: Return,
block: Block,
) -> Return
where Block: FnOnce(&mut T) -> Return;
fn with_not_null_return_block<DefaultBlock, Block, Return>(
&self,
default: DefaultBlock,
block: Block,
) -> Return
where DefaultBlock: FnOnce() -> Return,
Block: FnOnce(&mut T) -> Return;
fn drop(self);
}
Required Methods§
fn with<Block, Return>(&self, block: Block) -> Return
fn with_value<Block, Return>(&self, block: Block) -> Return
fn with_not_null<Block>(&self, block: Block)
fn with_not_null_return<Block, Return>( &self, default: Return, block: Block, ) -> Return
fn with_not_null_return_block<DefaultBlock, Block, Return>( &self, default: DefaultBlock, block: Block, ) -> Return
fn drop(self)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.