Struct rvlib::tools::Attributes
source · pub struct Attributes;Trait Implementations§
source§impl Clone for Attributes
impl Clone for Attributes
source§fn clone(&self) -> Attributes
fn clone(&self) -> Attributes
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for Attributes
impl Debug for Attributes
source§impl Manipulate for Attributes
impl Manipulate for Attributes
fn new() -> Selfwhere
Self: Sized,
fn on_activate(&mut self, world: World) -> World
fn on_deactivate(&mut self, world: World) -> World
fn on_filechange(&mut self, world: World, history: History) -> (World, History)
source§fn events_tf(
&mut self,
world: World,
history: History,
_event: &Events,
) -> (World, History)
fn events_tf( &mut self, world: World, history: History, _event: &Events, ) -> (World, History)
All events that are used by a tool are implemented in here. Use the macro
make_tool_transform. See, e.g.,
Zoom::events_tf.fn on_always_active_zoom( &mut self, world: World, history: History, ) -> (World, History)
source§fn has_been_used(&self, _: &Events) -> Option<bool>
fn has_been_used(&self, _: &Events) -> Option<bool>
None -> the tool does not tell you if it has been used
Some(true) -> the tool has been used
Some(false) -> the tool has not been used
fn get_visibility(&self, _world: &World) -> Visibility
impl Copy for Attributes
Auto Trait Implementations§
impl Freeze for Attributes
impl RefUnwindSafe for Attributes
impl Send for Attributes
impl Sync for Attributes
impl Unpin for Attributes
impl UnwindSafe for Attributes
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.