Struct totsu_core::solver::SliceRef
source · Expand description
Wrapping a reference of SliceLike
.
Implementations§
source§impl<'a, S: SliceLike + ?Sized> SliceRef<'a, S>
impl<'a, S: SliceLike + ?Sized> SliceRef<'a, S>
sourcepub unsafe fn new(s: &'a S) -> Self
pub unsafe fn new(s: &'a S) -> Self
Wraps a reference of SliceLike
and creates a SliceRef
.
This is unsafe and intended to be used only by SliceLike::new_ref
and SliceLike::split_ref
implementor.
Returns the SliceRef
.
s
is a reference ofSliceLike
.