pub struct FlexVersions {
pub splits: Vec<(String, Vec<String>)>,
pub next: String,
}Expand description
The versions entry of the Flex index.
Fields§
§splits: Vec<(String, Vec<String>)>splits: package name → the <major>.<minor> (or <major>.x)
versions it is split from (insertion order kept for the pruning).
next: Stringnext: what .x stands for.
Implementations§
Source§impl FlexVersions
impl FlexVersions
Sourcepub fn from_value(v: &Value) -> Result<FlexVersions, String>
pub fn from_value(v: &Value) -> Result<FlexVersions, String>
From the merged versions object (splits required — Flex throws
The Flex index is missing a "splits" entry otherwise).
Sourcepub fn merge_endpoints(indexes: &[Value]) -> Value
pub fn merge_endpoints(indexes: &[Value]) -> Value
Downloader::initialize’s self::$versions += $config['versions']
over the endpoints in order: the first endpoint’s keys win.
Sourcepub fn pruned(&self, symfony: &Constraint) -> FlexVersions
pub fn pruned(&self, symfony: &Constraint) -> FlexVersions
PackageFilter::getVersions: the splits pruned to the versions
whose <v>.N.0 (.x → next) matches the constraint, up to 60
patch levels; an entry whose list is empty or unchanged is dropped
— a package absent from splits is then kept by the filter.
Trait Implementations§
Source§impl Clone for FlexVersions
impl Clone for FlexVersions
Source§impl Debug for FlexVersions
impl Debug for FlexVersions
Source§impl Default for FlexVersions
impl Default for FlexVersions
Source§impl PartialEq for FlexVersions
impl PartialEq for FlexVersions
impl StructuralPartialEq for FlexVersions
Auto Trait Implementations§
impl Freeze for FlexVersions
impl RefUnwindSafe for FlexVersions
impl Send for FlexVersions
impl Sync for FlexVersions
impl Unpin for FlexVersions
impl UnsafeUnpin for FlexVersions
impl UnwindSafe for FlexVersions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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