pub struct SafeName {
pub name: String,
pub range: SourceRange,
}Expand description
One function #pragma cinrs safe named.
The pragma is the spelling that works in every entry point and in string-literal input, so it names its functions rather than being written on one; whether a name is a function of this unit at all is sema’s question, and the range is what its diagnostic points at.
Fields§
§name: StringThe identifier as written.
range: SourceRangeWhere it was written.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SafeName
impl RefUnwindSafe for SafeName
impl Send for SafeName
impl Sync for SafeName
impl Unpin for SafeName
impl UnsafeUnpin for SafeName
impl UnwindSafe for SafeName
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