pub struct UseSitePath {
pub multipath: Option<Vec<Alternative>>,
pub wildcard_hardened: bool,
}Expand description
Use-site path declaration: an optional multipath group plus a wildcard.
Fields§
§multipath: Option<Vec<Alternative>>Optional multipath alternatives (Some ⇒ has-multipath bit set).
wildcard_hardened: boolWhether the trailing wildcard is hardened (*h).
Implementations§
Source§impl UseSitePath
impl UseSitePath
Sourcepub fn standard_multipath() -> Self
pub fn standard_multipath() -> Self
The dominant <0;1>/* form.
Sourcepub fn write(&self, w: &mut BitWriter) -> Result<(), Error>
pub fn write(&self, w: &mut BitWriter) -> Result<(), Error>
Encode this use-site path onto the bit stream w.
§Errors
Returns Error::AltCountOutOfRange if self.multipath contains fewer
than MIN_ALT_COUNT or more than MAX_ALT_COUNT alternatives.
Trait Implementations§
Source§impl Clone for UseSitePath
impl Clone for UseSitePath
Source§fn clone(&self) -> UseSitePath
fn clone(&self) -> UseSitePath
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UseSitePath
impl Debug for UseSitePath
Source§impl PartialEq for UseSitePath
impl PartialEq for UseSitePath
Source§fn eq(&self, other: &UseSitePath) -> bool
fn eq(&self, other: &UseSitePath) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for UseSitePath
impl StructuralPartialEq for UseSitePath
Auto Trait Implementations§
impl Freeze for UseSitePath
impl RefUnwindSafe for UseSitePath
impl Send for UseSitePath
impl Sync for UseSitePath
impl Unpin for UseSitePath
impl UnsafeUnpin for UseSitePath
impl UnwindSafe for UseSitePath
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more