what's the usecase?
Heh, surprising. Rust's number types have ".trailing_zeros()", but not ". trailing_ones()". Wonder if it's because of a limitation in Assembly. Would be a nice method to have. Not just for symmetry, got a concrete use for it too.
-
-
-
In the flat-tree crate we count trailing ones to calculate the depth of a node in the trew. Useful when doing any bin number stuff.
End of conversation
New conversation -
-
-
(!value).trailing_zeros()
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.