pub struct Tag {
pub kind: TagType,
pub name: Utf8CString,
pub data: TagData,
pub updated: bool,
}
Expand description
Tag data / metadata description.
Fields§
§kind: TagType
Tag type.
name: Utf8CString
Name.
data: TagData
Tag data type.
updated: bool
True if this tag has been updated since last being accessed with Sound::get_tag
Implementations§
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.
§Panics
This function will panic if value
is not valid (Invalid type, wrong data length, etc)
Trait Implementations§
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