Struct htrpc::types::EntryPoint
[−]
[src]
pub struct EntryPoint { /* fields omitted */ }
The entry point definition of a procedure.
Methods
impl EntryPoint
[src]
fn new(segments: &'static [PathSegment]) -> Self
[src]
Makes a new EntryPoint
instance.
Usually it is convenient to use htrpc_entry_point!
macro to construct this.
Examples
use htrpc::types::{EntryPoint, PathSegment}; static SEGMENTS: &[PathSegment] = &[PathSegment::Val("foo"), PathSegment::Var, PathSegment::Val("baz")]; let p0 = EntryPoint::new(SEGMENTS); let p1 = htrpc_entry_point!["foo", _, "baz"]; assert_eq!(p0, p1);
fn segments(&self) -> &'static [PathSegment]
[src]
Returns the segments in this entry point.
fn var_count(&self) -> usize
[src]
Counts variables in this entry point.
Trait Implementations
impl Debug for EntryPoint
[src]
impl Clone for EntryPoint
[src]
fn clone(&self) -> EntryPoint
[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 Copy for EntryPoint
[src]
impl PartialEq for EntryPoint
[src]
fn eq(&self, __arg_0: &EntryPoint) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &EntryPoint) -> bool
[src]
This method tests for !=
.