pub struct LocalContentReference(/* private fields */);Expand description
Opaque product-neutral reference to immutable local bytes.
Implementations§
Source§impl LocalContentReference
impl LocalContentReference
Sourcepub fn new(value: impl Into<String>) -> Result<Self>
pub fn new(value: impl Into<String>) -> Result<Self>
Creates a non-empty local-content reference and preserves it exactly.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the wrapper and returns the opaque reference.
Trait Implementations§
Source§impl Clone for LocalContentReference
impl Clone for LocalContentReference
Source§fn clone(&self) -> LocalContentReference
fn clone(&self) -> LocalContentReference
Returns a duplicate of the value. Read more
1.0.0 · 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 LocalContentReference
impl Debug for LocalContentReference
Source§impl Hash for LocalContentReference
impl Hash for LocalContentReference
Source§impl PartialEq for LocalContentReference
impl PartialEq for LocalContentReference
impl Eq for LocalContentReference
impl StructuralPartialEq for LocalContentReference
Auto Trait Implementations§
impl Freeze for LocalContentReference
impl RefUnwindSafe for LocalContentReference
impl Send for LocalContentReference
impl Sync for LocalContentReference
impl Unpin for LocalContentReference
impl UnwindSafe for LocalContentReference
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