Struct ResourceId
pub struct ResourceId(/* private fields */);Implementations§
§impl ResourceId
impl ResourceId
§impl ResourceId
impl ResourceId
pub fn create( domain: &Domain, id: impl AsRef<KanziStr>, ) -> Result<ResourceId, Error>
pub fn equals(&self, rhs: &ResourceId) -> Result<bool, Error>
pub fn to_string(&self) -> Result<KanziString, Error>
pub fn is_url(&self) -> Result<bool, Error>
pub fn empty(&self) -> Result<bool, Error>
pub fn get_hash(&self) -> Result<u64, Error>
Trait Implementations§
§impl Clone for ResourceId
impl Clone for ResourceId
§fn clone(&self) -> ResourceId
fn clone(&self) -> ResourceId
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 more§impl Debug for ResourceId
impl Debug for ResourceId
§impl Hash for ResourceId
impl Hash for ResourceId
§impl PartialEq for ResourceId
impl PartialEq for ResourceId
§impl VariantConstraint for ResourceId
impl VariantConstraint for ResourceId
§type DataArg<'a> = &'a ResourceId
type DataArg<'a> = &'a ResourceId
Specifies the type of an argument that provides a value to
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§type RetArg = ResourceId
type RetArg = ResourceId
§fn as_arg(&self) -> <ResourceId as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <ResourceId as VariantConstraint>::DataArg<'_>
impl Eq for ResourceId
Auto Trait Implementations§
impl Freeze for ResourceId
impl RefUnwindSafe for ResourceId
impl !Send for ResourceId
impl !Sync for ResourceId
impl Unpin for ResourceId
impl UnwindSafe for ResourceId
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