pub struct LocalName<S: Storage, ST: State = UncheckedState> { /* private fields */ }Implementations§
Source§impl<S: Storage, ST: State> LocalName<S, ST>
impl<S: Storage, ST: State> LocalName<S, ST>
Sourcepub unsafe fn new_in_state(storage: S) -> Self
pub unsafe fn new_in_state(storage: S) -> Self
Constructs a view in a specific typestate.
§Safety
The caller must ensure that storage satisfies the layout invariants for ST.
pub fn into_storage(self) -> S
pub fn local_name( &self, ) -> Result<LocalName_LocalName_ArrayView<S::Sliced<'_>>, Error>
Trait Implementations§
Source§impl<S: Storage> CheckComplete for LocalName<S, UncheckedState>
impl<S: Storage> CheckComplete for LocalName<S, UncheckedState>
Auto Trait Implementations§
impl<S, ST> Freeze for LocalName<S, ST>where
S: Freeze,
impl<S, ST> RefUnwindSafe for LocalName<S, ST>where
S: RefUnwindSafe,
ST: RefUnwindSafe,
impl<S, ST> Send for LocalName<S, ST>
impl<S, ST> Sync for LocalName<S, ST>
impl<S, ST> Unpin for LocalName<S, ST>
impl<S, ST> UnsafeUnpin for LocalName<S, ST>where
S: UnsafeUnpin,
impl<S, ST> UnwindSafe for LocalName<S, ST>where
S: UnwindSafe,
ST: UnwindSafe,
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