pub struct Tag {
pub kind: TagType,
pub name: Utf8CString,
pub data: TagData,
pub updated: bool,
}Fields§
§kind: TagType§name: Utf8CString§data: TagData§updated: boolImplementations§
Source§impl Tag
impl Tag
Sourcepub unsafe fn from_ffi(value: FMOD_TAG) -> Self
pub unsafe fn from_ffi(value: FMOD_TAG) -> Self
Create a safe Tag struct from the FFI equivalent.
§Safety
The string FMOD_TAG::name must be a null-terminated and must be valid for reads of bytes up to and including the nul terminator.
This function will read into arbitrary memory! Because of this the tag data type must match the data type of the data pointer.
Auto Trait Implementations§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
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