Skip to main content

CommandResultTrait

Trait CommandResultTrait 

Source
pub trait CommandResultTrait {
    // Required methods
    fn new(i: i32) -> Self;
    fn as_i32(&self) -> Option<i32>;
}

Required Methods§

Source

fn new(i: i32) -> Self

Source

fn as_i32(&self) -> Option<i32>

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.

Implementations on Foreign Types§

Source§

impl CommandResultTrait for i32

Source§

fn new(i: i32) -> Self

Source§

fn as_i32(&self) -> Option<i32>

Source§

impl<E> CommandResultTrait for Result<i32, E>

Source§

fn new(i: i32) -> Self

Source§

fn as_i32(&self) -> Option<i32>

Implementors§