pub struct ParsedDeployedName { /* private fields */ }Expand description
A deployed module name parsed into its logical module name and content hash.
Implementations§
Source§impl ParsedDeployedName
impl ParsedDeployedName
Sourcepub fn new(logical: String, hash: ContentHash) -> Self
pub fn new(logical: String, hash: ContentHash) -> Self
Creates a parsed deployed-name value from its two components.
Sourcepub fn logical(&self) -> &str
pub fn logical(&self) -> &str
Returns the logical module name before deployment-time namespacing.
Sourcepub const fn hash(&self) -> &ContentHash
pub const fn hash(&self) -> &ContentHash
Returns the content hash embedded in the deployed module name.
Sourcepub fn into_parts(self) -> (String, ContentHash)
pub fn into_parts(self) -> (String, ContentHash)
Consumes the parsed value into its owned components.
Trait Implementations§
Source§impl Clone for ParsedDeployedName
impl Clone for ParsedDeployedName
Source§fn clone(&self) -> ParsedDeployedName
fn clone(&self) -> ParsedDeployedName
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 ParsedDeployedName
impl Debug for ParsedDeployedName
impl Eq for ParsedDeployedName
Source§impl PartialEq for ParsedDeployedName
impl PartialEq for ParsedDeployedName
Source§fn eq(&self, other: &ParsedDeployedName) -> bool
fn eq(&self, other: &ParsedDeployedName) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ParsedDeployedName
Auto Trait Implementations§
impl Freeze for ParsedDeployedName
impl RefUnwindSafe for ParsedDeployedName
impl Send for ParsedDeployedName
impl Sync for ParsedDeployedName
impl Unpin for ParsedDeployedName
impl UnsafeUnpin for ParsedDeployedName
impl UnwindSafe for ParsedDeployedName
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.