Struct typst_syntax::package::PackageSpec
source · pub struct PackageSpec {
pub namespace: EcoString,
pub name: EcoString,
pub version: PackageVersion,
}
Expand description
Identifies a package.
Fields§
§namespace: EcoString
The namespace the package lives in.
name: EcoString
The name of the package within its namespace.
version: PackageVersion
The package’s version.
Trait Implementations§
source§impl Clone for PackageSpec
impl Clone for PackageSpec
source§fn clone(&self) -> PackageSpec
fn clone(&self) -> PackageSpec
Returns a copy 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 PackageSpec
impl Debug for PackageSpec
source§impl Display for PackageSpec
impl Display for PackageSpec
source§impl FromStr for PackageSpec
impl FromStr for PackageSpec
source§impl Hash for PackageSpec
impl Hash for PackageSpec
source§impl PartialEq for PackageSpec
impl PartialEq for PackageSpec
source§fn eq(&self, other: &PackageSpec) -> bool
fn eq(&self, other: &PackageSpec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PackageSpec
impl StructuralPartialEq for PackageSpec
Auto Trait Implementations§
impl Freeze for PackageSpec
impl RefUnwindSafe for PackageSpec
impl Send for PackageSpec
impl Sync for PackageSpec
impl Unpin for PackageSpec
impl UnwindSafe for PackageSpec
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