Struct starlark::docs::DocProperty
source · pub struct DocProperty {
pub docs: Option<DocString>,
pub typ: Ty,
}
Expand description
A single property of an object. These are explicitly not functions (see DocMember
).
Fields§
§docs: Option<DocString>
§typ: Ty
Trait Implementations§
source§impl Allocative for DocProperty
impl Allocative for DocProperty
source§impl Clone for DocProperty
impl Clone for DocProperty
source§fn clone(&self) -> DocProperty
fn clone(&self) -> DocProperty
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DocProperty
impl Debug for DocProperty
source§impl PartialEq for DocProperty
impl PartialEq for DocProperty
source§fn eq(&self, other: &DocProperty) -> bool
fn eq(&self, other: &DocProperty) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DocProperty
impl Serialize for DocProperty
impl StructuralPartialEq for DocProperty
Auto Trait Implementations§
impl !RefUnwindSafe for DocProperty
impl Send for DocProperty
impl Sync for DocProperty
impl Unpin for DocProperty
impl !UnwindSafe for DocProperty
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