pub struct RepositorySet {
pub root_aliases: BTreeMap<String, BTreeMap<String, (String, String)>>,
pub root_references: BTreeMap<String, String>,
pub acceptable_stabilities: BTreeMap<String, i32>,
pub stability_flags: BTreeMap<String, i32>,
pub root_requires: OrderedMap<Constraint>,
pub temporary_constraints: BTreeMap<String, TemporaryConstraint>,
pub repositories: Vec<Repository>,
}Expand description
Composer\Repository\RepositorySet.
Fields§
§root_aliases: BTreeMap<String, BTreeMap<String, (String, String)>>name -> version -> (alias, alias_normalized) (getRootAliasesPerPackage).
root_references: BTreeMap<String, String>§acceptable_stabilities: BTreeMap<String, i32>§stability_flags: BTreeMap<String, i32>§root_requires: OrderedMap<Constraint>§temporary_constraints: BTreeMap<String, TemporaryConstraint>§repositories: Vec<Repository>Implementations§
Source§impl RepositorySet
impl RepositorySet
pub fn new( minimum_stability: &str, stability_flags: BTreeMap<String, i32>, root_aliases: &[RootAlias], root_references: BTreeMap<String, String>, root_requires: OrderedMap<Constraint>, temporary_constraints: BTreeMap<String, TemporaryConstraint>, ) -> RepositorySet
pub fn add_repository(&mut self, repo: Repository)
Sourcepub fn create_pool(
&self,
request: &mut Request,
arena: &mut Vec<Package>,
pre_pool: Option<&PrePoolFilter>,
) -> Result<Pool, PoolError>
pub fn create_pool( &self, request: &mut Request, arena: &mut Vec<Package>, pre_pool: Option<&PrePoolFilter>, ) -> Result<Pool, PoolError>
createPool without optimizer or filters.
Auto Trait Implementations§
impl !RefUnwindSafe for RepositorySet
impl !Send for RepositorySet
impl !Sync for RepositorySet
impl !UnwindSafe for RepositorySet
impl Freeze for RepositorySet
impl Unpin for RepositorySet
impl UnsafeUnpin for RepositorySet
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more