pub trait ScriptBitAndAssign {
type RHS: ?Sized;
// Required method
fn script_bit_and_assign(
origin: Origin,
lhs: Arg,
rhs: Arg,
) -> RuntimeResult<()>;
}
Expand description
A script bitwise conjunction and assignment operator: lhs &= rhs
.
Implementing this trait enables the Object::bit_and_assign operation.
The trait must be implemented for the registered type, and the implementation must be exported using the export macro. For more details, see the module documentation.
Required Associated Types§
Sourcetype RHS: ?Sized
type RHS: ?Sized
A rough estimation of the type of the right-hand side of the operation.
This type must implement ScriptType.
Required Methods§
Sourcefn script_bit_and_assign(
origin: Origin,
lhs: Arg,
rhs: Arg,
) -> RuntimeResult<()>
fn script_bit_and_assign( origin: Origin, lhs: Arg, rhs: Arg, ) -> RuntimeResult<()>
Operation implementation.
The parameters and return type of this function correspond to those of the Object::bit_and_assign function.
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.