pub struct PackageDeclaration {
pub name: String,
pub span: Range<usize>,
}Expand description
包声明
Fields§
§name: String包名
span: Range<usize>源码位置
Trait Implementations§
Source§impl Clone for PackageDeclaration
impl Clone for PackageDeclaration
Source§fn clone(&self) -> PackageDeclaration
fn clone(&self) -> PackageDeclaration
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 PackageDeclaration
impl Debug for PackageDeclaration
Source§impl<'de> Deserialize<'de> for PackageDeclaration
impl<'de> Deserialize<'de> for PackageDeclaration
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 PartialEq for PackageDeclaration
impl PartialEq for PackageDeclaration
Source§impl Serialize for PackageDeclaration
impl Serialize for PackageDeclaration
impl StructuralPartialEq for PackageDeclaration
Auto Trait Implementations§
impl Freeze for PackageDeclaration
impl RefUnwindSafe for PackageDeclaration
impl Send for PackageDeclaration
impl Sync for PackageDeclaration
impl Unpin for PackageDeclaration
impl UnwindSafe for PackageDeclaration
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