pub struct TopicPath {
pub path: String,
pub wildcards: bool,
/* private fields */
}
Fields§
§path: String
§wildcards: bool
Implementations§
Source§impl TopicPath
impl TopicPath
pub fn path(&self) -> String
pub fn get(&self, index: usize) -> Option<&Topic>
pub fn get_mut(&mut self, index: usize) -> Option<&mut Topic>
pub fn len(&self) -> usize
pub fn is_final(&self, index: usize) -> bool
pub fn is_multi(&self, index: usize) -> bool
pub fn from_str<T: AsRef<str>>(path: T) -> Result<TopicPath>
Trait Implementations§
Source§impl IntoIterator for TopicPath
impl IntoIterator for TopicPath
Source§impl ToTopicPath for TopicPath
impl ToTopicPath for TopicPath
fn to_topic_path(&self) -> Result<TopicPath>
fn to_topic_name(&self) -> Result<TopicPath>
Auto Trait Implementations§
impl Freeze for TopicPath
impl RefUnwindSafe for TopicPath
impl Send for TopicPath
impl Sync for TopicPath
impl Unpin for TopicPath
impl UnwindSafe for TopicPath
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