Skip to main content

GroupMember

Trait GroupMember 

Source
pub trait GroupMember: MovableNode {
    // Required methods
    fn group_id(&self) -> i32;
    fn set_group_id(&mut self, group_id: i32);
}
Expand description

A node row that can belong to a group.

group_id is the node’s membership: the id of its group, or 0 for none. It sits on the row for the same reason selected does — a drag commits the members of a moving group, reading them from the rows the editor renders from. There are no defaults: a host that uses groups implements both, and a host that does not never names this trait.

Required Methods§

Source

fn group_id(&self) -> i32

The group this node belongs to, or 0 for none.

Source

fn set_group_id(&mut self, group_id: i32)

Change the node’s membership.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§