Struct reproto_core::RpPackage [] [src]

pub struct RpPackage { /* fields omitted */ }

Methods

impl RpPackage
[src]

[src]

[src]

Get length of package.

[src]

Parse a package from a string.

Warning: This does not perform any validation that the given package only contains identifier components!

  • An empty string results in a package without any parts.
  • All other strings are split on dots.

[src]

Build an empty package.

[src]

Join with the other package.

[src]

Join this package with another, versioned, package.

[src]

Join the parts of this package with the given string.

[src]

Join with the given part.

[src]

Check if this package starts with another package.

[src]

Replace all keyword components in this package.

[src]

Apply the given naming policy to each part.

[src]

Iterate over the parts in the package.

Trait Implementations

impl Debug for RpPackage
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for RpPackage
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for RpPackage
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for RpPackage
[src]

impl PartialOrd for RpPackage
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for RpPackage
[src]

[src]

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Hash for RpPackage
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl AsPackage for RpPackage
[src]

[src]

Attempt to treat the current object as a package.

[src]

Attempt to prefix the package.

impl Display for RpPackage
[src]

[src]

Formats the value using the given formatter. Read more

impl Serialize for RpPackage
[src]

[src]

Serialize this value into the given Serde serializer. Read more

impl<'de> Deserialize<'de> for RpPackage
[src]

[src]

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl Send for RpPackage

impl Sync for RpPackage