pub struct RustConst {
pub name: String,
pub visibility: Visibility,
pub doc_comment: Option<String>,
pub ty: String,
pub value: Option<String>,
pub source: SourceSpan,
}Expand description
A Rust const item
Fields§
§name: String§visibility: Visibility§doc_comment: Option<String>§ty: String§value: Option<String>§source: SourceSpanTrait Implementations§
Source§impl<'de> Deserialize<'de> for RustConst
impl<'de> Deserialize<'de> for RustConst
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RustConst
impl RefUnwindSafe for RustConst
impl Send for RustConst
impl Sync for RustConst
impl Unpin for RustConst
impl UnsafeUnpin for RustConst
impl UnwindSafe for RustConst
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