pub struct MapType<'s> { /* private fields */ }Expand description
Object.<string, T> 的解析结果。
Implementations§
Source§impl<'s> MapType<'s>
impl<'s> MapType<'s>
Sourcepub fn is_nullable(&self) -> bool
pub fn is_nullable(&self) -> bool
字典本身是否可为 null(Object.<string, T>|null)。
Sourcepub fn seg_type(&self) -> SegType<'s>
pub fn seg_type(&self) -> SegType<'s>
转成链段类型:可空字典给 SegType::OptMap,否则 SegType::Map。
Trait Implementations§
impl<'s> Copy for MapType<'s>
impl<'s> Eq for MapType<'s>
impl<'s> StructuralPartialEq for MapType<'s>
Auto Trait Implementations§
impl<'s> Forget for MapType<'s>
impl<'s> Freeze for MapType<'s>
impl<'s> Move for MapType<'s>
impl<'s> RefUnwindSafe for MapType<'s>
impl<'s> Send for MapType<'s>
impl<'s> Sync for MapType<'s>
impl<'s> Unpin for MapType<'s>
impl<'s> UnsafeUnpin for MapType<'s>where
&'s str: UnsafeUnpin,
impl<'s> UnwindSafe for MapType<'s>where
&'s str: UnwindSafe,
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