Struct reproto_core::RpEndpointArgument
[−]
[src]
pub struct RpEndpointArgument<F: 'static> where
F: Flavor, { pub ident: Rc<Loc<String>>, pub safe_ident: Rc<Option<String>>, pub channel: Loc<RpChannel<F>>, }
An argument to an endpont.
Fields
ident: Rc<Loc<String>>
Identifier of the argument.
safe_ident: Rc<Option<String>>
Safe identifier for the argument.
channel: Loc<RpChannel<F>>
Channel of the argument.
Methods
impl<F: 'static> RpEndpointArgument<F> where
F: Flavor,
[src]
F: Flavor,
pub fn ident(&self) -> &str
[src]
Access the actual identifier of the endpoint argument.
pub fn safe_ident(&self) -> &str
[src]
Access the safe identifier for the endpoint argument.
Trait Implementations
impl<F: Debug + 'static> Debug for RpEndpointArgument<F> where
F: Flavor,
[src]
F: Flavor,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<F: Clone + 'static> Clone for RpEndpointArgument<F> where
F: Flavor,
[src]
F: Flavor,
fn clone(&self) -> RpEndpointArgument<F>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<F: PartialEq + 'static> PartialEq for RpEndpointArgument<F> where
F: Flavor,
[src]
F: Flavor,
fn eq(&self, __arg_0: &RpEndpointArgument<F>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RpEndpointArgument<F>) -> bool
[src]
This method tests for !=
.
impl<F: Eq + 'static> Eq for RpEndpointArgument<F> where
F: Flavor,
[src]
F: Flavor,
impl<F: 'static, T> Translate<T> for RpEndpointArgument<F> where
F: Flavor,
T: Translator<Source = F>,
[src]
F: Flavor,
T: Translator<Source = F>,
type Source = F
type Out = RpEndpointArgument<T::Target>
fn translate(self, translator: &T) -> Result<RpEndpointArgument<T::Target>>
[src]
Translate into different flavor.