pub struct MsgResolver {
pub index: HashMap<(String, String), PathBuf>,
pub cache: HashMap<(String, String), MsgSpec>,
pub srv_index: HashMap<(String, String), PathBuf>,
pub srv_cache: HashMap<(String, String), SrvSpec>,
pub include_paths: Vec<PathBuf>,
}Fields§
§index: HashMap<(String, String), PathBuf>§cache: HashMap<(String, String), MsgSpec>§srv_index: HashMap<(String, String), PathBuf>§srv_cache: HashMap<(String, String), SrvSpec>§include_paths: Vec<PathBuf>Implementations§
Source§impl MsgResolver
impl MsgResolver
pub fn new(include_paths: &[PathBuf]) -> Result<Self>
pub fn resolve_ridl_type( &mut self, type_ref: &str, ctx: &ResolveContext, ) -> Result<()>
pub fn resolve_named_type( &mut self, package: &str, name: &str, from: Option<(&str, &ResolveContext)>, ) -> Result<()>
pub fn resolve_all_in_index( &mut self, verbose: bool, skip_count: &mut usize, ) -> Result<()>
pub fn find_msg_path(&self, package: &str, name: &str) -> Option<PathBuf>
pub fn ordered_specs(&self) -> Vec<&MsgSpec>
pub fn resolve_all_srv( &mut self, verbose: bool, skip_count: &mut usize, ) -> Result<()>
pub fn resolve_srv(&mut self, package: &str, name: &str) -> Result<()>
pub fn find_srv_path(&self, package: &str, name: &str) -> Option<PathBuf>
pub fn ordered_srvs(&self) -> Vec<&SrvSpec>
pub fn srv_spec(&self, package: &str, name: &str) -> Option<&SrvSpec>
Auto Trait Implementations§
impl Freeze for MsgResolver
impl RefUnwindSafe for MsgResolver
impl Send for MsgResolver
impl Sync for MsgResolver
impl Unpin for MsgResolver
impl UnsafeUnpin for MsgResolver
impl UnwindSafe for MsgResolver
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