pub struct FName(pub FNameHandle);Expand description
A UE FName value. Copy-able, hashable, and comparable.
FName is UE’s interned string type — cheap to copy and compare, but creation and string conversion require FFI calls.
Tuple Fields§
§0: FNameHandleImplementations§
Source§impl FName
impl FName
Sourcepub fn handle(&self) -> FNameHandle
pub fn handle(&self) -> FNameHandle
Get the underlying FFI handle.
Sourcepub fn to_string_lossy(&self) -> String
pub fn to_string_lossy(&self) -> String
Convert to a String. Returns an error only if the FFI call fails.
Trait Implementations§
Source§impl From<FName> for FNameHandle
impl From<FName> for FNameHandle
Source§fn from(name: FName) -> FNameHandle
fn from(name: FName) -> FNameHandle
Converts to this type from the input type.
Source§impl From<FNameHandle> for FName
impl From<FNameHandle> for FName
Source§fn from(handle: FNameHandle) -> FName
fn from(handle: FNameHandle) -> FName
Converts to this type from the input type.
impl Copy for FName
impl Eq for FName
impl StructuralPartialEq for FName
Auto Trait Implementations§
impl Freeze for FName
impl RefUnwindSafe for FName
impl Send for FName
impl Sync for FName
impl Unpin for FName
impl UnsafeUnpin for FName
impl UnwindSafe for FName
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