pub struct ResRef(_);
Expand description
Представляет ссылку на игровой ресурс, которым может быть шаблон объекта
Implementations
sourceimpl 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 StructuralEq for ResRef
impl StructuralPartialEq for ResRef
Auto Trait Implementations
impl RefUnwindSafe for ResRef
impl Send for ResRef
impl Sync for ResRef
impl Unpin for ResRef
impl UnwindSafe for ResRef
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.