pub struct SchoolItem {
pub id: &'static str,
pub name: &'static str,
pub default: bool,
pub note: &'static str,
}Expand description
叶的一个流派。
Fields§
§id: &'static str流派稳定 id(代码内使用,小写英数)。
name: &'static str显示名(承接层展示)。
default: bool是否默认流派(每叶应恰有一个默认)。
note: &'static str一句说明:差异点 / 校验依据 / 流派归属。
Trait Implementations§
Source§impl Clone for SchoolItem
impl Clone for SchoolItem
Source§fn clone(&self) -> SchoolItem
fn clone(&self) -> SchoolItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SchoolItem
Source§impl Debug for SchoolItem
impl Debug for SchoolItem
Auto Trait Implementations§
impl Freeze for SchoolItem
impl RefUnwindSafe for SchoolItem
impl Send for SchoolItem
impl Sync for SchoolItem
impl Unpin for SchoolItem
impl UnsafeUnpin for SchoolItem
impl UnwindSafe for SchoolItem
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