Expand description
Defines Relevant
type to use in types that requires
custom destruction.
With default feature “std” it Drop
implementation will not trigger panic
in case of unwinding (e.g. already panicking).
Structs
Values of this type can’t be automatically dropped.
If struct or enum has field with type
Relevant
,
it can’t be automatically dropped either. And so considered relevant too.
User has to deconstruct such values and call Relevant::dispose
.
If relevant field is private it means that user has to move value into some public method.
For example memory::Block
should be returned to the MemoryAllocator
it came from.