pub struct UserProperty {
pub name: Utf8CString,
pub kind: UserPropertyKind,
}
Available on crate feature
studio
only.Expand description
Describes a user property.
Fields§
§name: Utf8CString
Property name.
kind: UserPropertyKind
Property type.
Implementations§
Source§impl UserProperty
impl UserProperty
Sourcepub unsafe fn from_ffi(value: FMOD_STUDIO_USER_PROPERTY) -> Self
pub unsafe fn from_ffi(value: FMOD_STUDIO_USER_PROPERTY) -> Self
Create a safe UserPropertyKind
struct from the FFI equivalent.
§Safety
All string values from the FFI struct must be a null-terminated and must be valid for reads of bytes up to and including the nul terminator. The type field must match the type assigned to the union.
See Utf8CStr::from_ptr_unchecked
for more information.
§Panics
This function will panic if value
is not a valid user property type.
Trait Implementations§
Source§impl Clone for UserProperty
impl Clone for UserProperty
Source§fn clone(&self) -> UserProperty
fn clone(&self) -> UserProperty
Returns a duplicate 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 UserProperty
impl Debug for UserProperty
Source§impl From<&UserProperty> for FMOD_STUDIO_USER_PROPERTY
impl From<&UserProperty> for FMOD_STUDIO_USER_PROPERTY
Source§fn from(value: &UserProperty) -> Self
fn from(value: &UserProperty) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UserProperty
impl PartialEq for UserProperty
impl StructuralPartialEq for UserProperty
Auto Trait Implementations§
impl Freeze for UserProperty
impl RefUnwindSafe for UserProperty
impl Send for UserProperty
impl Sync for UserProperty
impl Unpin for UserProperty
impl UnwindSafe for UserProperty
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