pub struct ConstantItem {
pub type_display: String,
pub expr: String,
pub value: Option<String>,
pub is_literal: bool,
}Fields§
§type_display: String§expr: String§value: Option<String>§is_literal: boolTrait Implementations§
Source§impl Clone for ConstantItem
impl Clone for ConstantItem
Source§fn clone(&self) -> ConstantItem
fn clone(&self) -> ConstantItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConstantItem
impl Debug for ConstantItem
Source§impl<'de> Deserialize<'de> for ConstantItem
impl<'de> Deserialize<'de> for ConstantItem
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 ConstantItem
impl RefUnwindSafe for ConstantItem
impl Send for ConstantItem
impl Sync for ConstantItem
impl Unpin for ConstantItem
impl UnsafeUnpin for ConstantItem
impl UnwindSafe for ConstantItem
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