pub trait ScriptNot {
type Result: ?Sized;
// Required method
fn script_not(origin: Origin, lhs: Arg) -> RuntimeResult<Cell>;
}
Expand description
A script logical negation operator: !foo
.
Implementing this trait enables the Object::not 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 Result: ?Sized
type Result: ?Sized
A rough estimation of the result type of this operation.
This type must implement ScriptType.
Required Methods§
Sourcefn script_not(origin: Origin, lhs: Arg) -> RuntimeResult<Cell>
fn script_not(origin: Origin, lhs: Arg) -> RuntimeResult<Cell>
Operation implementation.
The parameters and return type of this function correspond to those of the Object::not 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.