pub struct GOV3 {
pub size: u64,
pub width: u64,
pub multiplier: u64,
pub global_seed: u64,
pub offset_and_seed: Vec<u64>,
pub array: Vec<u64>,
}
Expand description
A stub to load and access Genuzio-Ottaviano-Vigna static functions.
To generate the structure you must use the Java version:
java it.unimi.dsi.sux4j.mph.GOV3Function --byte-array SOURCE test.sf
To obtain a file that can be read by this structure, load the serialized Java instance of the static function and dump it in C-compatible format:
echo '((it.unimi.dsi.sux4j.mph.GOV3Function)it.unimi.dsi.fastutil.io.BinIO.loadObject("test.sf")).dump("test.csf");' | jshell
You can now load the dumped file with the load
method.
Reference:
Fields§
§size: u64
§width: u64
§multiplier: u64
§global_seed: u64
§offset_and_seed: Vec<u64>
§array: Vec<u64>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for GOV3
impl Send for GOV3
impl Sync for GOV3
impl Unpin for GOV3
impl UnwindSafe for GOV3
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
§impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere U: CastableFrom<T>,
§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere U: DowncastableFrom<T>,
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere T: ?Sized,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.