Struct broccoli::pmut::PMut[][src]

#[repr(transparent)]
pub struct PMut<'a, T: ?Sized> { /* fields omitted */ }
Expand description

A protected mutable reference that derefs to &T. See the pmut module documentation for more explanation.

Implementations

Flatten a double pointer

Convert a PMut<T> inside a PMut<[T]> of size one.

Create a protected pointer.

Start a new borrow lifetime

If this function were safe, it would defeat the purpose of this type.

Safety

This is unsafe, since the user may mutate the inner AABB while T is inserted in a tree thus undoing the whole point of this struct.

Destructure a node into its three parts.

Return a mutable list of elements in this node.

Return a read-only reference to the aabb. Note the lifetime. Given the guarentees of the Aabb trait, we can have this extended lifetime.

Unpack only the mutable innner component

Return the element at the specified index. We can’t use the index trait because we don’t want to return a mutable reference.

Split off the first element.

Return a smaller slice that ends with the specified index.

Return a smaller slice that starts at the specified index.

Return a smaller slice that starts and ends with the specified range.

Return a mutable iterator.

Trait Implementations

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.