[−][src]Struct broccoli::pmut::PMut
A protected mutable reference. See the pmut module documentation for more explanation.
Implementations
impl<'a, T: ?Sized> PMut<'a, T>
[src]
pub fn new(inner: &'a mut T) -> PMut<'a, T>
[src]
pub fn as_mut(&mut self) -> PMut<'_, T>
[src]
pub fn as_ref(&self) -> &T
[src]
impl<'a, T: Node> PMut<'a, T>
[src]
impl<'a, T: HasInner> PMut<'a, T>
[src]
impl<'a, T: HasInner> PMut<'a, T>
[src]
pub fn into_inner(self) -> &'a mut T::Inner
[src]
impl<'a, T> PMut<'a, [T]>
[src]
pub fn get_index_mut(&mut self, ind: usize) -> PMut<'_, T>
[src]
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn split_first_mut(self) -> Option<(PMut<'a, T>, PMut<'a, [T]>)>
[src]
pub fn truncate_to(self, a: RangeTo<usize>) -> Self
[src]
pub fn truncate_from(self, a: RangeFrom<usize>) -> Self
[src]
pub fn truncate(self, a: Range<usize>) -> Self
[src]
pub fn iter(self) -> Iter<'a, T>
[src]
pub fn iter_mut(self) -> PMutIter<'a, T>ⓘ
[src]
Trait Implementations
impl<'a, T: Aabb> Aabb for PMut<'a, T>
[src]
impl<'a, T: HasInner> HasInner for PMut<'a, T>
[src]
type Inner = T::Inner
fn get_inner(&self) -> (&Rect<T::Num>, &Self::Inner)
[src]
fn get_inner_mut(&mut self) -> (&Rect<T::Num>, &mut Self::Inner)
[src]
fn inner_mut(&mut self) -> &mut Self::Inner
[src]
fn inner(&self) -> &Self::Inner
[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,
T: RefUnwindSafe,
impl<'a, T: ?Sized> Send for PMut<'a, T> where
T: Send,
T: Send,
impl<'a, T: ?Sized> Sync for PMut<'a, T> where
T: Sync,
T: Sync,
impl<'a, T: ?Sized> Unpin for PMut<'a, T>
impl<'a, T> !UnwindSafe for PMut<'a, T>
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<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
pub fn into_iter(self) -> I
[src]
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>,