Struct azalea_core::ResourceLocation
source · pub struct ResourceLocation {
pub namespace: String,
pub path: String,
}
Fields§
§namespace: String
§path: String
Implementations§
source§impl ResourceLocation
impl ResourceLocation
pub fn new(resource_string: &str) -> ResourceLocation
Trait Implementations§
source§impl Clone for ResourceLocation
impl Clone for ResourceLocation
source§fn clone(&self) -> ResourceLocation
fn clone(&self) -> ResourceLocation
Returns a copy 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 ResourceLocation
impl Debug for ResourceLocation
source§impl Display for ResourceLocation
impl Display for ResourceLocation
source§impl Hash for ResourceLocation
impl Hash for ResourceLocation
source§impl McBufReadable for ResourceLocation
impl McBufReadable for ResourceLocation
source§impl McBufWritable for ResourceLocation
impl McBufWritable for ResourceLocation
source§impl PartialEq<ResourceLocation> for ResourceLocation
impl PartialEq<ResourceLocation> for ResourceLocation
source§fn eq(&self, other: &ResourceLocation) -> bool
fn eq(&self, other: &ResourceLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ResourceLocation
impl StructuralEq for ResourceLocation
impl StructuralPartialEq for ResourceLocation
Auto Trait Implementations§
impl RefUnwindSafe for ResourceLocation
impl Send for ResourceLocation
impl Sync for ResourceLocation
impl Unpin for ResourceLocation
impl UnwindSafe for ResourceLocation
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
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere T: Display,
§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString
]. Read more