pub struct CtlOpSize {
pub target: Box<Node>,
pub size: Box<Node>,
}
Expand description
Control Operator .size
.size
is defined in RFC 8610 3.8.1.
It sets an upper limit, measured in bytes.
For example, “tstr .size 10” permits only strings of 10 bytes or less. See RFC 8610 section 3.8 for details.
Fields§
§target: Box<Node>
The type that is size-constrained.
Only certain types are permitted. RFC 8610 defines .size
for
tstr
, bstr
, and unsigned integers.
size: Box<Node>
The size limit, in bytes.
Trait Implementations§
source§impl PartialEq for CtlOpSize
impl PartialEq for CtlOpSize
impl StructuralPartialEq for CtlOpSize
Auto Trait Implementations§
impl RefUnwindSafe for CtlOpSize
impl Send for CtlOpSize
impl Sync for CtlOpSize
impl Unpin for CtlOpSize
impl UnwindSafe for CtlOpSize
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