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 ContainerElement for FName
impl ContainerElement for FName
Source§const BUF_SIZE: u32 = 8
const BUF_SIZE: u32 = 8
Buffer size for FFI transport. Must be large enough for the C++ side
to write the element value.
Source§const RAW_COPYABLE: bool = true
const RAW_COPYABLE: bool = true
Whether this type can be bulk-copied as raw bytes (no per-element framing).
True for fixed-size primitives (bool, integers, floats) and FName.
impl Copy for FName
impl Eq for FName
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 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