Trait ruci::MessageParameterPointer

source ·
pub trait MessageParameterPointer: Copy + Debug + Hash + Eq + PartialEq {
    type MessagePointer: MessagePointer;

    // Required methods
    fn as_string(self) -> &'static str;
    fn from_message_and_str(
        message_pointer: Self::MessagePointer,
        s: &str
    ) -> Result<Self, MessageParameterPointerParseError>;
    fn has_value(self) -> bool;
}
Expand description

This is a simple Copy “pointer” enum necessary for parsing.

Required Associated Types§

Required Methods§

source

fn as_string(self) -> &'static str

source

fn from_message_and_str( message_pointer: Self::MessagePointer, s: &str ) -> Result<Self, MessageParameterPointerParseError>

Parses a string to a message parameter pointer.

§Errors
source

fn has_value(self) -> bool

Whether this parameter has a value. Almost all do, but ponder and infinite of the go message don’t. They are referred to as “void parameters”.

Object Safety§

This trait is not object safe.

Implementors§