pub enum BlockLayoutError {
ZeroBlockSize,
ZeroWindow,
Misaligned {
window: usize,
block_size: usize,
remainder: usize,
},
}Expand description
Why a block layout was refused.
Variants§
ZeroBlockSize
A zero-token block is not a unit of anything.
ZeroWindow
Some(0) is not “no window”: a zero window would mean a query
attends to nothing, which no model does. A model with no
sliding-window attention must say None.
Misaligned
The eviction boundary would fall inside a block. See the module note for what the two possible responses to that both corrupt.
Trait Implementations§
Source§impl Clone for BlockLayoutError
impl Clone for BlockLayoutError
Source§fn clone(&self) -> BlockLayoutError
fn clone(&self) -> BlockLayoutError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BlockLayoutError
Source§impl Debug for BlockLayoutError
impl Debug for BlockLayoutError
Source§impl Display for BlockLayoutError
impl Display for BlockLayoutError
impl Eq for BlockLayoutError
Source§impl Error for BlockLayoutError
impl Error for BlockLayoutError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<BlockLayoutError> for SignatureError
impl From<BlockLayoutError> for SignatureError
Source§fn from(err: BlockLayoutError) -> Self
fn from(err: BlockLayoutError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BlockLayoutError
impl PartialEq for BlockLayoutError
impl StructuralPartialEq for BlockLayoutError
Auto Trait Implementations§
impl Freeze for BlockLayoutError
impl RefUnwindSafe for BlockLayoutError
impl Send for BlockLayoutError
impl Sync for BlockLayoutError
impl Unpin for BlockLayoutError
impl UnsafeUnpin for BlockLayoutError
impl UnwindSafe for BlockLayoutError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more