pub struct Const {
pub name: String,
pub const_type: Type,
pub value: String,
pub annotations: Vec<Annotation>,
pub doc: Option<String>,
pub symbol_range: Range,
pub full_range: Range,
}
Fields§
§name: String
§const_type: Type
§value: String
§annotations: Vec<Annotation>
§doc: Option<String>
§symbol_range: Range
§full_range: Range
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Const
impl<'de> Deserialize<'de> for Const
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
impl StructuralPartialEq for Const
Auto Trait Implementations§
impl Freeze for Const
impl RefUnwindSafe for Const
impl Send for Const
impl Sync for Const
impl Unpin for Const
impl UnwindSafe for Const
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