pub struct TreeSlots {
pub managed: bool,
pub directory: Option<SlotDirectory>,
pub current: usize,
}Expand description
一棵树的槽位清单。
Fields§
§managed: bool是不是可管理模式。false 时 directory 为 None。
directory: Option<SlotDirectory>槽位目录。可否认模式下为 None——那不是「读取失败」,是设计如此。
current: usize手头这把钥匙占的槽位下标。
Trait Implementations§
Auto Trait Implementations§
impl Forget for TreeSlots
impl Freeze for TreeSlots
impl RefUnwindSafe for TreeSlots
impl Send for TreeSlots
impl Sync for TreeSlots
impl Unpin for TreeSlots
impl UnsafeUnpin for TreeSlots
impl UnwindSafe for TreeSlots
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