Struct htrpc::types::EntryPoint [] [src]

pub struct EntryPoint { /* fields omitted */ }

The entry point definition of a procedure.

Methods

impl EntryPoint
[src]

[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);

[src]

Returns the segments in this entry point.

[src]

Counts variables in this entry point.

Trait Implementations

impl Debug for EntryPoint
[src]

[src]

Formats the value using the given formatter.

impl Clone for EntryPoint
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for EntryPoint
[src]

impl PartialEq for EntryPoint
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for EntryPoint
[src]