pub struct NargoBlock {
pub name: String,
pub attributes: HashMap<String, String>,
pub content: String,
pub span: Span,
pub content_span: Span,
}Expand description
Nargo 文件中的代码块
Fields§
§name: String块名称
attributes: HashMap<String, String>块属性
content: String块内容
span: Span块的位置范围
content_span: Span块内容的位置范围
Trait Implementations§
Source§impl Clone for NargoBlock
impl Clone for NargoBlock
Source§fn clone(&self) -> NargoBlock
fn clone(&self) -> NargoBlock
Returns a duplicate 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 NargoBlock
impl Debug for NargoBlock
Source§impl<'de> Deserialize<'de> for NargoBlock
impl<'de> Deserialize<'de> for NargoBlock
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 NargoBlock
impl RefUnwindSafe for NargoBlock
impl Send for NargoBlock
impl Sync for NargoBlock
impl Unpin for NargoBlock
impl UnsafeUnpin for NargoBlock
impl UnwindSafe for NargoBlock
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