Block entity support, implement signs
This commit is contained in:
parent
5f6e41f700
commit
d0704b2a67
|
@ -12,7 +12,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#[derive(Clone)]
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct Set {
|
||||
data: Vec<u64>,
|
||||
}
|
||||
|
@ -65,4 +65,10 @@ impl Set {
|
|||
}
|
||||
true
|
||||
}
|
||||
|
||||
pub fn or(&mut self, other: &Set) {
|
||||
for (a, b) in self.data.iter_mut().zip(&other.data) {
|
||||
*a = (*a) | *b;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue