pub struct DocObject {
pub name: String,
pub is_class: bool,
pub superclasses: Vec<String>,
pub place: DocPlace,
pub comment: String,
pub modified_in: Vec<DocPlace>,
pub members: Vec<DocMember>,
pub from_library: bool,
pub values: Vec<(String, String)>,
}Expand description
A class or a named object.
Fields§
§name: StringIts name in the source.
is_class: boolIt is a class, not an object.
superclasses: Vec<String>What it is built on, first first.
place: DocPlaceWhere it is defined.
comment: StringThe comment above its definition, without its comment marks.
modified_in: Vec<DocPlace>Where modify adds to it.
members: Vec<DocMember>Its own properties and methods, those modify adds among them,
in the order they are first defined.
from_library: boolIt is defined in a library’s source, not the game’s.
values: Vec<(String, String)>The properties it gives a value written out whole, by name, each
value as the source would write it: a string ('Grab the satchel'), an object’s name, nil, true, or a number. Those its
template gives are among them; location, for one written with
+, is the name of what it is in.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for DocObject
impl Freeze for DocObjectwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<DocPlace>: Freeze,
PhantomData<DocMember>: Freeze,
PhantomData<(String, String)>: Freeze,
impl Move for DocObject
impl RefUnwindSafe for DocObject
impl Send for DocObjectwhere
RawVecInner: Send,
impl Sync for DocObjectwhere
RawVecInner: Sync,
impl Unpin for DocObject
impl UnsafeUnpin for DocObjectwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<DocPlace>: UnsafeUnpin,
PhantomData<DocMember>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
impl UnwindSafe for DocObjectwhere
RawVecInner: 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