pub struct ResRef(/* private fields */);Expand description
Представляет ссылку на игровой ресурс, которым может быть шаблон объекта
Implementations§
Source§impl ResRef
impl ResRef
Sourcepub fn as_str(&self) -> Result<&str, Utf8Error>
pub fn as_str(&self) -> Result<&str, Utf8Error>
Возвращает представление данной ссылки на ресурс как строки, если она представлена в виде UTF-8 строки
Sourcepub fn as_string(self) -> Result<String, FromUtf8Error>
pub fn as_string(self) -> Result<String, FromUtf8Error>
Возвращает представление данной ссылки на ресурс как строки, если она представлена в виде UTF-8 строки
Trait Implementations§
impl Eq for ResRef
impl StructuralPartialEq for ResRef
Auto Trait Implementations§
impl Freeze for ResRef
impl RefUnwindSafe for ResRef
impl Send for ResRef
impl Sync for ResRef
impl Unpin for ResRef
impl UnwindSafe for ResRef
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.