pub struct Config { /* private fields */ }
Implementations§
Source§impl Config
impl Config
pub fn new_empty() -> Config
pub fn new_by_map( field: HashMap<String, Field>, proto: HashMap<String, Proto>, ) -> Config
pub fn new_by_full_str(config: &str) -> Option<Config>
pub fn new(field: &str, proto: &str) -> Option<Config>
pub fn get_field_by_name(&self, name: &String) -> Option<&Field>
pub fn get_field_by_index(&self, index: &u16) -> Option<&Field>
pub fn get_proto_by_name(&self, name: &String) -> Option<&Proto>
pub fn get_field_index_name(&self, index: &u16) -> Option<&String>
pub fn get_proto_msg_type(&self, name: &String) -> Option<&String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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