pub struct Route {
pub lines: Vec<Line>,
pub capture_groups: Vec<CaptureGroup>,
}
Fields§
§lines: Vec<Line>
§capture_groups: Vec<CaptureGroup>
Implementations§
Source§impl Route
impl Route
pub fn new() -> Self
pub fn new_line(&mut self) -> usize
pub fn new_capture_group(&mut self, name: Option<String>) -> usize
pub fn get_capture_group_index_by_name(&self, name: &str) -> Option<usize>
pub fn get_capture_group_name_by_index(&self, index: usize) -> Option<&str>
pub fn get_debug_text(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Route
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnwindSafe for Route
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