Struct AiContextWindowSize
pub struct AiContextWindowSize(/* private fields */);Implementations§
§impl AiContextWindowSize
impl AiContextWindowSize
pub fn new(value: u32) -> Result<AiContextWindowSize, AiContextError>
pub const fn value(self) -> u32
pub const fn get(self) -> u32
Trait Implementations§
§impl Clone for AiContextWindowSize
impl Clone for AiContextWindowSize
§fn clone(&self) -> AiContextWindowSize
fn clone(&self) -> AiContextWindowSize
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for AiContextWindowSize
impl Debug for AiContextWindowSize
§impl Hash for AiContextWindowSize
impl Hash for AiContextWindowSize
§impl Ord for AiContextWindowSize
impl Ord for AiContextWindowSize
§fn cmp(&self, other: &AiContextWindowSize) -> Ordering
fn cmp(&self, other: &AiContextWindowSize) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for AiContextWindowSize
impl PartialEq for AiContextWindowSize
§impl PartialOrd for AiContextWindowSize
impl PartialOrd for AiContextWindowSize
impl Copy for AiContextWindowSize
impl Eq for AiContextWindowSize
impl StructuralPartialEq for AiContextWindowSize
Auto Trait Implementations§
impl Freeze for AiContextWindowSize
impl RefUnwindSafe for AiContextWindowSize
impl Send for AiContextWindowSize
impl Sync for AiContextWindowSize
impl Unpin for AiContextWindowSize
impl UnsafeUnpin for AiContextWindowSize
impl UnwindSafe for AiContextWindowSize
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