pub struct CommandDB {
pub user: Vec<CommandDescription>,
/* private fields */
}Fields§
§user: Vec<CommandDescription>User defined commands
Implementations§
Source§impl CommandDB
impl CommandDB
pub fn new(ver: RMVer) -> Self
pub fn get(&self, code: u16) -> Option<&CommandDescription>
pub fn iter(&self) -> impl Iterator<Item = &CommandDescription>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut CommandDescription>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CommandDB
impl<'de> Deserialize<'de> for CommandDB
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CommandDB
impl RefUnwindSafe for CommandDB
impl Send for CommandDB
impl Sync for CommandDB
impl Unpin for CommandDB
impl UnwindSafe for CommandDB
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