[−][src]Struct broccoli::pmut::PMut
A protected mutable reference. A protected mutable reference that derefs to &T
.
See the pmut module documentation for more explanation.
Implementations
impl<'a, 'b: 'a, T> PMut<'a, PMut<'b, T>>
[src]
impl<'a, T> PMut<'a, T>
[src]
pub fn into_slice(self) -> PMut<'a, [T]>
[src]
Convert a PMut<T>
inside a PMut<[T]>
of size one.
impl<'a, T: ?Sized> PMut<'a, T>
[src]
pub fn new(inner: &'a mut T) -> PMut<'a, T>
[src]
Create a protected pointer.
pub fn borrow_mut(&mut self) -> PMut<'_, T>
[src]
Start a new borrow lifetime
pub fn into_ref(self) -> &'a T
[src]
impl<'a, 'b: 'a, T: Aabb> PMut<'a, Node<'b, T>>
[src]
pub fn into_range_full(
self
) -> (&'a Option<T::Num>, &'a Option<Range<T::Num>>, PMut<'a, [T]>)
[src]
self
) -> (&'a Option<T::Num>, &'a Option<Range<T::Num>>, PMut<'a, [T]>)
Destructure a node into its three parts.
pub fn into_range(self) -> PMut<'a, [T]>
[src]
Return a mutable list of elements in this node.
impl<'a, T: Aabb> PMut<'a, T>
[src]
pub fn unpack_rect(self) -> &'a Rect<T::Num>
[src]
impl<'a, T: HasInner> PMut<'a, T>
[src]
pub fn unpack(self) -> (&'a Rect<T::Num>, &'a mut T::Inner)
[src]
Unpack for the read-only rect and the mutable inner component
pub fn unpack_inner(self) -> &'a mut T::Inner
[src]
Unpack only the mutable innner component
impl<'a, T> PMut<'a, [T]>
[src]
pub fn get_index_mut(self, ind: usize) -> PMut<'a, T>
[src]
Return the element at the specified index. We can't use the index trait because we don't want to return a mutable reference.
pub fn split_first_mut(self) -> Option<(PMut<'a, T>, PMut<'a, [T]>)>
[src]
Split off the first element.
pub fn truncate_to(self, a: RangeTo<usize>) -> Self
[src]
Return a smaller slice that ends with the specified index.
pub fn truncate_from(self, a: RangeFrom<usize>) -> Self
[src]
Return a smaller slice that starts at the specified index.
pub fn truncate(self, a: Range<usize>) -> Self
[src]
Return a smaller slice that starts and ends with the specified range.
pub fn iter_mut(self) -> PMutIter<'a, T>ⓘ
[src]
Return a mutable iterator.
Trait Implementations
impl<'a, T: Aabb> Aabb for PMut<'a, T>
[src]
impl<'a, T: Debug + ?Sized> Debug for PMut<'a, T>
[src]
impl<'a, T: ?Sized> Deref for PMut<'a, T>
[src]
impl<'a, T> IntoIterator for PMut<'a, [T]>
[src]
Auto Trait Implementations
impl<'a, T: ?Sized> RefUnwindSafe for PMut<'a, T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<'a, T: ?Sized> Send for PMut<'a, T> where
T: Send,
[src]
T: Send,
impl<'a, T: ?Sized> Sync for PMut<'a, T> where
T: Sync,
[src]
T: Sync,
impl<'a, T: ?Sized> Unpin for PMut<'a, T>
[src]
impl<'a, T> !UnwindSafe for PMut<'a, T>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,