Block entity support, implement signs

This commit is contained in:
Thinkofname 2016-04-04 22:08:24 +01:00
parent 5f6e41f700
commit d0704b2a67
1 changed files with 7 additions and 1 deletions

View File

@ -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;
}
}
}