pub struct ExternBlock {
pub abi: Option<String>,
pub items: Vec<Item>,
pub span: Range<usize>,
}Expand description
Represents an extern block in Rust source code.
Fields§
§abi: Option<String>The ABI string (e.g., “C”, “system”)
items: Vec<Item>List of items within the extern block
span: Range<usize>Source code span where this extern block appears
Trait Implementations§
Source§impl Clone for ExternBlock
impl Clone for ExternBlock
Source§fn clone(&self) -> ExternBlock
fn clone(&self) -> ExternBlock
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 ExternBlock
impl Debug for ExternBlock
Source§impl<'de> Deserialize<'de> for ExternBlock
impl<'de> Deserialize<'de> for ExternBlock
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
Source§impl Hash for ExternBlock
impl Hash for ExternBlock
Source§impl PartialEq for ExternBlock
impl PartialEq for ExternBlock
Source§impl Serialize for ExternBlock
impl Serialize for ExternBlock
impl Eq for ExternBlock
impl StructuralPartialEq for ExternBlock
Auto Trait Implementations§
impl Freeze for ExternBlock
impl RefUnwindSafe for ExternBlock
impl Send for ExternBlock
impl Sync for ExternBlock
impl Unpin for ExternBlock
impl UnwindSafe for ExternBlock
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