pub struct PyProjectBuildSystem { /* private fields */ }Expand description
Partial [build-system] metadata.
Implementations§
Source§impl PyProjectBuildSystem
impl PyProjectBuildSystem
Sourcepub const fn new() -> PyProjectBuildSystem
pub const fn new() -> PyProjectBuildSystem
Creates build-system metadata.
Sourcepub fn with_requirement(
self,
requirement: PyProjectDependency,
) -> PyProjectBuildSystem
pub fn with_requirement( self, requirement: PyProjectDependency, ) -> PyProjectBuildSystem
Adds a build requirement.
Sourcepub fn with_build_backend(
self,
build_backend: PyProjectBuildBackend,
) -> PyProjectBuildSystem
pub fn with_build_backend( self, build_backend: PyProjectBuildBackend, ) -> PyProjectBuildSystem
Adds a build backend label.
Sourcepub fn requires(&self) -> &[PyProjectDependency]
pub fn requires(&self) -> &[PyProjectDependency]
Returns build requirements.
Sourcepub const fn build_backend(&self) -> Option<&PyProjectBuildBackend>
pub const fn build_backend(&self) -> Option<&PyProjectBuildBackend>
Returns the build backend when present.
Trait Implementations§
Source§impl Clone for PyProjectBuildSystem
impl Clone for PyProjectBuildSystem
Source§fn clone(&self) -> PyProjectBuildSystem
fn clone(&self) -> PyProjectBuildSystem
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 PyProjectBuildSystem
impl Debug for PyProjectBuildSystem
Source§impl Default for PyProjectBuildSystem
impl Default for PyProjectBuildSystem
Source§fn default() -> PyProjectBuildSystem
fn default() -> PyProjectBuildSystem
Returns the “default value” for a type. Read more
Source§impl PartialEq for PyProjectBuildSystem
impl PartialEq for PyProjectBuildSystem
Source§fn eq(&self, other: &PyProjectBuildSystem) -> bool
fn eq(&self, other: &PyProjectBuildSystem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PyProjectBuildSystem
impl StructuralPartialEq for PyProjectBuildSystem
Auto Trait Implementations§
impl Freeze for PyProjectBuildSystem
impl RefUnwindSafe for PyProjectBuildSystem
impl Send for PyProjectBuildSystem
impl Sync for PyProjectBuildSystem
impl Unpin for PyProjectBuildSystem
impl UnsafeUnpin for PyProjectBuildSystem
impl UnwindSafe for PyProjectBuildSystem
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